Skip to content

Commit

Permalink
chore: bump goreleaser github action (#329)
Browse files Browse the repository at this point in the history
Co-authored-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Jan 28, 2023
1 parent 1c905fd commit 00eae5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.16
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
Expand All @@ -26,10 +26,11 @@ jobs:
sudo mv upx-3.96-amd64_linux/upx $(which upx)
upx -V
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.9.1
uses: goreleaser/goreleaser-action@v4.1.1
with:
version: latest
args: release --skip-publish --rm-dist
github_token: ${{ secrets.GH_PUBLISH_SECRETS }}
version: v1.14.0
args: release --skip-publish --rm-dist --snapshot
- name: Test against the cmd
run: |
sudo ./release/http-downloader_linux_amd64_v1/hd install jenkins-zh/jenkins-cli/jcli
Expand All @@ -49,7 +50,7 @@ jobs:
name: Lint
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.16
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.18
- name: Upgrade upx
run: |
# try to fix https://github.com/jenkins-zh/jenkins-cli/issues/493
Expand All @@ -32,9 +32,10 @@ jobs:
docker login --username ${{ secrets.DOCKER_HUB_USER }} --password ${{secrets.DOCKER_HUB_TOKEN}}
docker login ghcr.io/linuxsuren --username linuxsuren --password ${{secrets.GH_PUBLISH_SECRETS}}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.9.1
uses: goreleaser/goreleaser-action@v4.1.1
with:
version: v1.14.1
github_token: ${{ secrets.GH_PUBLISH_SECRETS }}
version: v1.14.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
Expand Down

0 comments on commit 00eae5a

Please sign in to comment.