Skip to content

Commit

Permalink
fix dirty goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
watzon committed Nov 22, 2024
1 parent 380963b commit 9f3b232
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ permissions:

jobs:
update-version:
name: Update version
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -20,7 +19,6 @@ jobs:
with:
fetch-depth: 0
ref: main

- name: Update version
run: |
DATE=$(date -u +"%Y-%m-%d")
Expand All @@ -33,7 +31,6 @@ jobs:
git add pkg/version/version.go
git commit -m "Update version to ${GITHUB_REF_NAME}"
git push origin main
goreleaser:
needs: update-version
runs-on: ubuntu-latest
Expand All @@ -42,27 +39,20 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main


- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.20.0'

# - name: Create vendor archive
# run: |
# go mod vendor
# tar czf vendor.tar.gz vendor/
# rm -rf vendor

- name: Install Cosign
uses: sigstore/[email protected]

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: v2.4.8
version: v2.4.7
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9f3b232

Please sign in to comment.