Skip to content

Commit

Permalink
Upload cli artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Dec 16, 2023
1 parent ab11023 commit 08b4ff7
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,35 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Compile and release cli
- name: Compile cli for artifact
id: compile_cli
uses: rust-build/rust-build.action@v1.4.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
SRC_DIR: cli/
UPLOAD_MODE: none

- name: Upload cli artifact
uses: actions/upload-artifact@v3
with:
name: crunch64-cli
path: |
${{ steps.compile_cli.outputs.BUILT_ARCHIVE }}
${{ steps.compile_cli.outputs.BUILT_CHECKSUM }}
- name: Compile and release cli
uses: rust-build/rust-build.action@v1.4.4
if: "startsWith(github.ref, 'refs/tags/')"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
SRC_DIR: cli/
UPLOAD_MODE: release
publish:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 08b4ff7

Please sign in to comment.