Skip to content

Commit

Permalink
chore: update file configurations and workflows
Browse files Browse the repository at this point in the history
- Update `GO_VERSION` environment variable from `'1.21'` to `'1.22'` in `.github/workflows/release.yml`
- Remove `preRelease` job in `.github/workflows/test.yml`
- Delete `.goreleaser.dev.yaml` file
- Add `extra_files` section with a glob pattern in `.goreleaser.yaml`

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed May 24, 2024
1 parent dd17e4a commit 6dc95b0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
TZ: Asia/Shanghai
GO_VERSION: '1.21'
GO_VERSION: '1.22'

permissions: write-all

Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,3 @@ jobs:
if: always()
with:
sarif_file: 'trivy-results.sarif'

preRelease:
name: "build"
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --config .goreleaser.dev.yaml --skip validate,announce
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
62 changes: 0 additions & 62 deletions .goreleaser.dev.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@ release:
prerelease: auto
replace_existing_draft: true
mode: replace
extra_files:
- glob: version.json

0 comments on commit 6dc95b0

Please sign in to comment.