From d550346f980a5dbc9aea9a18174c1ded028abf9e Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Thu, 5 Jan 2023 00:16:08 +0900 Subject: [PATCH] Use action-gh-release --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7524a4d9..262fa7aa3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -289,6 +289,38 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + release: + needs: [maven-release, npm-release] + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + name: Publish GitHub Release + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + name: recheck.jar + path: packages/recheck-jar/ + - uses: actions/download-artifact@v3 + with: + name: recheck-darwin-x64 + path: packages/recheck-macos-x64/ + - uses: actions/download-artifact@v3 + with: + name: recheck-linux-x64 + path: packages/recheck-linux-x64/ + - uses: actions/download-artifact@v3 + with: + name: recheck-win32-x64.exe + path: packages/recheck-windows-x64/ + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + recheck.jar + recheck-darwin-x64 + recheck-linux-x64 + recheck-win32-x64.exe + gh-pages: needs: [build] if: github.ref_name == 'main'