From dfbad52ca242bae963346b4c1c6a6ba2268318ec Mon Sep 17 00:00:00 2001 From: Ping Timeout Date: Tue, 1 Aug 2023 19:17:35 +0800 Subject: [PATCH] Update build.yml (#17) (#24) (#27) (#31) (#45) (#54) (#62) (#65) (#77) (#80) --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99ac810810..118bb16a93 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -200,3 +200,27 @@ jobs: name: vaultwarden path: target/release/vaultwarden # End Upload artifact to Github Actions + + + - name: release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/${{ matrix.target-triple }}/release/vaultwarden${{ matrix.ext }} + tag: ${{ github.ref }} + asset_name: vaultwarden_$tag + overwrite: true + body: "https://github.com/dani-garcia/vaultwarden/releases" + + ## This is not used at the moment + ## We could start using this when we can build static binaries + # Upload to github actions release + # - name: Release + # uses: Shopify/upload-to-release@1 + # if: startsWith(github.ref, 'refs/tags/') + # with: + # name: vaultwarden-${{ matrix.target-triple }}${{ matrix.ext }} + # path: target/${{ matrix.target-triple }}/release/vaultwarden${{ matrix.ext }} + # repo-token: ${{ secrets.GITHUB_TOKEN }} + # End Upload to github actions release +