Skip to content

Commit

Permalink
Merge pull request #40 from lifeomic/upgrade-to-go-19
Browse files Browse the repository at this point in the history
fix: upgrade release to go1.19
  • Loading branch information
0xch4z authored Sep 19, 2022
2 parents 27cab1a + 6257a77 commit 3e414b5
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
# You will need to pass the `--batch` flag to `gpg` in your signing step
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#
name: release
on:
push:
branches:
- master
- master
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: terraform-registry
steps:
- name: Checkout
uses: actions/[email protected]
- name: Unshallow
run: git fetch --prune --unshallow
- name: Install semantic-release Dependency
run: npm install -g semantic-release conventional-changelog-conventionalcommits
- name: Tag Release
run: semantic-release
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
gpg_private_key: ${{ secrets.LIFEOMIC_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.LIFEOMIC_GPG_PRIVATE_KEY_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/[email protected]
- name: Unshallow
run: git fetch --prune --unshallow
- name: Install semantic-release Dependency
run: npm install -g semantic-release conventional-changelog-conventionalcommits
- name: Tag Release
run: semantic-release
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
gpg_private_key: ${{ secrets.LIFEOMIC_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.LIFEOMIC_GPG_PRIVATE_KEY_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3e414b5

Please sign in to comment.