Skip to content

Commit

Permalink
ci: Use upload/download artifacts to avoid release race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
iquiw committed Oct 13, 2024
1 parent 33b1aac commit 04da848
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:
shell: bash

jobs:
release:
build:
strategy:
matrix:
target:
Expand Down Expand Up @@ -63,10 +63,28 @@ jobs:
VERSION: ${{ github.ref_name }}
shell: bash

- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: rireq-${{ matrix.os }}
path: |
release/
release:
runs-on: ubuntu-latest

needs: [build]

steps:
- name: Download packages
uses: actions/download-artifact@v4
with:
path: release/
merge-multiple: true

- name: Publish
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: 'release/*'
artifacts: "release/*"
body: |
* rireq ${{ github.ref_name }}
## rireq ${{ github.ref_name }}

0 comments on commit 04da848

Please sign in to comment.