Skip to content

Commit

Permalink
manually created the upload action.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDunn committed Apr 8, 2023
1 parent 10ddc23 commit 50b648e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,28 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@master
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.3
- name: Install Rust
uses: dtolnay/setup-rust@v1
with:
rust-version: stable
- name: Build
run: cargo install --path cli
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
SRC_DIR: cli
MINIFY: true
RUSTTARGET: ${{ matrix.target }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: .cli/target/release/cli
asset_name: cli-${{ matrix.os }}
asset_content_type: application/octet-stream



0 comments on commit 50b648e

Please sign in to comment.