From e1785695abc1922b66d467837099f62f9a15f360 Mon Sep 17 00:00:00 2001 From: James Ball Date: Sun, 6 Jun 2021 22:50:55 +0100 Subject: [PATCH] Release twice for parallel runs --- .github/workflows/release.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 256b0fe..04f8b8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,17 +24,23 @@ jobs: echo "VERSION=$version" >> $env:GITHUB_ENV echo "Release version $version" > CHANGELOG mv "target/lib/osci-render-$version.jar" "target/lib/osci-render-win-$version.jar" - - name: Upload Windows binaries and jar - uses: actions/upload-artifact@v2 + ls target/lib/ + - name: Release + uses: softprops/action-gh-release@v1 with: - name: windows - path: target/lib + body_path: CHANGELOG + tag_name: v${{ env.VERSION }} + files: | + target/lib/osci-render-${{ env.VERSION }}.exe + target/lib/osci-render-win-${{ env.VERSION }}.jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: jameshball/osci-render build-debian: runs-on: ubuntu-latest - needs: build-windows steps: - uses: actions/checkout@v2 - name: Set up JDK 16 @@ -49,15 +55,12 @@ jobs: version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout) echo "VERSION=$version" >> $GITHUB_ENV mv target/lib/osci-render-$version.jar target/lib/osci-render-unix-$version.jar - - name: Download all workflow run artifacts - uses: actions/download-artifact@v2 + ls target/lib/ - name: Release uses: softprops/action-gh-release@v1 with: tag_name: v${{ env.VERSION }} files: | - windows/osci-render-${{ env.VERSION }}.exe - windows/osci-render-win-${{ env.VERSION }}.jar target/lib/osci-render-${{ env.VERSION }}.deb target/lib/osci-render-unix-${{ env.VERSION }}.jar env: