Skip to content

Commit

Permalink
fix: the release
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Nov 11, 2024
1 parent 4b0f38a commit 6d7fa7c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
go-version: '1.21'
cache: true

- name: Build binary
Expand Down Expand Up @@ -69,6 +69,11 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -79,7 +84,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get version from tag
VERSION=${GITHUB_REF#refs/tags/}
# Create release notes
Expand All @@ -90,8 +94,9 @@ jobs:
cat *.sha256 >> release_notes.md
echo '```' >> release_notes.md
# Create release and upload assets
gh release create $VERSION \
# Create release using gh cli
gh release create "$VERSION" \
--repo "$GITHUB_REPOSITORY" \
--title "Copepod $VERSION" \
--notes-file release_notes.md \
copepod-*

0 comments on commit 6d7fa7c

Please sign in to comment.