Skip to content

Commit

Permalink
ci: Fixes to the release script (#61)
Browse files Browse the repository at this point in the history
1. Include ref to allow concurrent releases.
2. Checkout the repo before trying to mark the release.
  • Loading branch information
bjchambers authored Feb 1, 2024
1 parent 6ed1b12 commit cc34383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

# Only one release job at a time.
concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Triggered when a release is published.defaults:
Expand Down Expand Up @@ -168,7 +168,8 @@ jobs:
gh release upload
'${{ github.ref_name }}' dewy-client/dist/**
--repo '${{ github.repository }}'
# We need to checkout the repository in order to edit the release.
- uses: actions/checkout@v4
- name: Publish release
# TODO: Add --discussion-category "Announcements" to create a release discussion?
run: |
Expand Down

0 comments on commit cc34383

Please sign in to comment.