Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong committed Jul 5, 2024
1 parent 6424386 commit 08785dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/gotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: Checkout trzsz-go
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: go test
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Checkout trzsz-go
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: go test
Expand All @@ -29,8 +29,23 @@ jobs:
- name: Checkout trzsz-go
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: go test
run: go test -v -count=1 ./trzsz
go-release-snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout trzsz-go
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v1"
args: release --clean --snapshot --skip=publish
22 changes: 8 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,19 @@ jobs:
- name: Checkout trzsz-go
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: "~> v1"
args: release --clean --skip=publish
- name: Upload Release Assets
uses: trzsz/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
release_id: ${{ github.event.release.id }}
assets_path: |
files: |
dist/*.tar.gz
dist/*.zip
dist/*.rpm
Expand All @@ -49,7 +46,7 @@ jobs:
uses: actions/checkout@v4
- name: Get trzsz-go version
id: trzsz-go-version
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: NO_NEED
result-encoding: string
Expand All @@ -75,9 +72,6 @@ jobs:
./inst/iscc trzsz_windows_x86_64.iss
./inst/iscc trzsz_windows_aarch64.iss
- name: Upload Inno Setup Assets
uses: trzsz/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
release_id: ${{ github.event.release.id }}
assets_path: inno_setup/Output/*.exe
files: inno_setup/Output/*.exe

0 comments on commit 08785dd

Please sign in to comment.