Skip to content

Commit

Permalink
Update build.yml (#17) (#24) (#27) (#31) (#45) (#54) (#62) (#65) (#77) (
Browse files Browse the repository at this point in the history
#80) (#85) (#92) (#98) (#106) (#107) (#114) (#115) (#125) (#136) (#140) (#142) (#147)
  • Loading branch information
Ping-timeout authored Oct 27, 2024
1 parent 33bae5f commit 49d8c9c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,45 @@ jobs:
run: |
echo "### :tada: Checks Passed!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
# Build the binary to upload to the artifacts
- name: "build features: sqlite,mysql,postgresql"
if: ${{ matrix.channel == 'rust-toolchain' }}
run: |
cargo build --release --features sqlite,mysql,postgresql
# End Build the binary


# Upload artifact to Github Actions
- name: "Upload artifact"
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: ${{ matrix.channel == 'rust-toolchain' }}
with:
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

0 comments on commit 49d8c9c

Please sign in to comment.