Skip to content

Commit

Permalink
build: update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 7, 2024
1 parent 2a9f11e commit 3a1108c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: stable
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Short Tests
if: runner.os == 'Linux'
Expand All @@ -46,10 +46,11 @@ jobs:
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: Save Release URL File for publish
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release_url
path: release_url.txt
retention-days: 1

publish:
name: Publish
Expand All @@ -60,7 +61,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: stable
id: go
Expand All @@ -71,10 +72,10 @@ jobs:
node-version: '20'

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Load Release URL File from release job
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: release_url

Expand All @@ -85,7 +86,7 @@ jobs:
id: get_release_info
shell: bash
run: |
value=`cat release_url/release_url.txt`
value=`cat release_url.txt`
echo ::set-output name=upload_url::$value
env:
TAG_REF_NAME: ${{ github.ref }}
Expand Down

0 comments on commit 3a1108c

Please sign in to comment.