Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
erkkah committed May 18, 2023
1 parent 66c30d8 commit 095c15f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
steps:

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.16
go-version: ^1.19
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run tests
run: go test ./tests
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
run: echo "ARCHIVE=git-private-${TAG}.tgz" >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.16
go-version: ^1.19
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run tests
run: go test ./tests
Expand All @@ -49,18 +49,11 @@ jobs:
run: tar czf $ARCHIVE linux macintel macarm windows

- name: Create release
id: create_release
uses: actions/create-release@master
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ env.ARCHIVE }}
tag_name: ${{ github.ref }}
release_name: ${{ env.TAG }}
body: ""
draft: true

- name: Upload release assets
uses: actions/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.ARCHIVE }}
asset_name: ${{ env.ARCHIVE }}
asset_content_type: application/tar+gzip

0 comments on commit 095c15f

Please sign in to comment.