Skip to content

Commit

Permalink
Build project before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jihchi committed Nov 16, 2020
1 parent 8ee0322 commit 01efa0c
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/release_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,35 @@ name: Upload Release Asset
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]
steps:
- name: Setup Rust Action
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}

- name: Checkout code
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Build project
run: |
zip --junk-paths my-artifact README.md
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Debug
run: find .

- name: Create Release
id: create_release
Expand Down

0 comments on commit 01efa0c

Please sign in to comment.