Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run goreleaser on tag #78

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading