Skip to content

Commit

Permalink
chore(ci): Fix release pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Blatt <[email protected]>
  • Loading branch information
MisterMX committed Feb 8, 2024
1 parent 846f5be commit 72a45d4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 43 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,34 @@ jobs:
distribution: goreleaser
version: ${{ env.GORELEASER_VERSION }}
args: build --clean --snapshot
- name: Publish artifacts to Github
uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: dist
path: dist
release:
needs:
- lint
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish artifacts to Github
uses: actions/upload-artifact@v4
with:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 72a45d4

Please sign in to comment.