Skip to content

Commit

Permalink
ci: run goreleaser on tag (#78)
Browse files Browse the repository at this point in the history
* ci: run goreleaser on tag

* set goreleaser version to 2 in config
  • Loading branch information
nicolasparada authored Jun 6, 2024
1 parent d0c371f commit c972c79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,28 @@ jobs:
./output/
- name: Upload coverage to Codecov
if: ${{ github.event_name != 'pull_request' }}
if: startsWith(github.ref, 'refs/tags/')
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
flags: ${{ runner.os }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Install Syft for sboms
if: ${{ github.event_name != 'pull_request' }}
if: startsWith(github.ref, 'refs/tags/')
run: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
shell: bash

- name: Import GPG key
if: ${{ github.event_name != 'pull_request' }}
if: startsWith(github.ref, 'refs/tags/')
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.CALYPTIA_GPG_KEY }}
passphrase: ${{ secrets.CALYPTIA_GPG_KEY_PASSPHRASE }}

- name: Run GoReleaser
if: ${{ github.event_name != 'pull_request' }}
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
with:
version: latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,5 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/go,macos,linux,windows,executable,git,visualstudiocode,goland,vim,c++,c

dist/
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 2

builds:
- skip: true
2 changes: 0 additions & 2 deletions .goreleaser.yml

This file was deleted.

0 comments on commit c972c79

Please sign in to comment.