-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ permissions: | |
|
||
jobs: | ||
update-version: | ||
name: Update version | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -20,7 +19,6 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: Update version | ||
run: | | ||
DATE=$(date -u +"%Y-%m-%d") | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|