Skip to content

Commit

Permalink
build: fix release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 28, 2024
1 parent 2f30b2d commit b113b39
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ 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@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check
run: make check
Expand All @@ -49,7 +51,7 @@ jobs:
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: Save Release URL File for publish
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: release_url
path: release_url.txt
Expand All @@ -63,16 +65,16 @@ 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@v2
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 @@ -83,7 +85,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 Expand Up @@ -128,13 +130,13 @@ jobs:
runs-on: ubuntu-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@v2
uses: actions/checkout@v4

- name: Docker
run: make docker
Expand Down

0 comments on commit b113b39

Please sign in to comment.