Skip to content

Commit

Permalink
feat: init release
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 authored Jul 19, 2022
1 parent d15a92c commit 4628209
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please-release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: go
token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }}
command: github-release
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-go@v3
if: ${{ steps.release.outputs.release_created }}
with:
go-version: 1.18
- name: goreleaser
if: ${{ steps.release.outputs.release_created }}
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
release-please-pr:
runs-on: ubuntu-latest
needs:
- release-please-release
steps:
- id: release-pr
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }}
release-type: go
command: release-pr
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ bin/

# Dependency directories (remove the comment below to include it)
# vendor/

dist/
30 changes: 30 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
project_name: octopus

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
id: "octopus"
main: ./cmd/octopus

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'

changelog:
skip: true

0 comments on commit 4628209

Please sign in to comment.