chore(deps): update svenstaro/upload-release-action digest to 81c65b7 #458
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: [ master ] | |
| tags: [ 'v*' ] | |
| pull_request: | |
| branches: [ master ] | |
| name: binaries | |
| jobs: | |
| # release binaries | |
| release-bins: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| targets: | |
| - x86_64-unknown-linux-musl | |
| bins: | |
| - heretek | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c # master | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.targets }} | |
| - run: cargo install cargo-quickinstall | |
| - run: cargo quickinstall cross | |
| - run: cross build --bin ${{ matrix.bins }} --locked --target ${{ matrix.targets }} --profile=dist | |
| - name: archive | |
| run: | | |
| tar -czvf ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz \ | |
| -C target/${{ matrix.targets }}/dist/ ${{ matrix.bins }} | |
| - uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
| with: | |
| name: ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz | |
| path: ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz | |
| - name: Upload binary to release | |
| if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
| uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz | |
| asset_name: ${{ matrix.bins }}-${{ github.ref_name }}-${{ matrix.targets }}.tar.gz | |
| tag: ${{ github.ref }} | |
| prerelease: true | |
| overwrite: true |