diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8d3d5d..115c7ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 \ No newline at end of file + allowUpdates: true