Skip to content

Commit

Permalink
fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Jul 29, 2024
1 parent c19b555 commit 19a3a26
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,26 @@ on:
- '*'

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GH_ACTIONS_RELEASE_TOKEN }}
tag: ${{ github.ref }}
name: Release ${{ github.ref_name }}
body: Initial release creation
draft: false
prerelease: false
allowUpdates: true

build:
runs-on: ${{ matrix.os }}
needs: create_release
strategy:
matrix:
include:
Expand Down Expand Up @@ -62,15 +80,16 @@ jobs:

- name: Zip files (Unix)
if: runner.os != 'Windows'
run: zip -r evidence-${{ matrix.os }}-${{ matrix.arch }}-node${{ matrix.node }}.zip . -x "*.git*"
run: zip -r evidence-${{ matrix.os }}-${{ matrix.arch }}-node${{ matrix.node }}.zip . -x "*.git*"

- name: Upload to GH release
uses: ncipollo/release-action@v1
with:
artifacts: evidence-${{ matrix.os }}-${{ matrix.arch }}-node${{ matrix.node }}.zip
token: ${{ secrets.GH_ACTIONS_RELEASE_TOKEN }}
name: Release ${{ github.ref_name }}
tag: ${{ github.ref }}
name: Release ${{ github.ref_name }}
body: Release for ${{ github.ref_name }}
draft: false
prerelease: false
allowUpdates: true
allowUpdates: true

0 comments on commit 19a3a26

Please sign in to comment.