Skip to content

Commit

Permalink
Release job
Browse files Browse the repository at this point in the history
  • Loading branch information
jac3km4 committed Mar 23, 2022
1 parent 38c50de commit 48d8f39
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: Release

on:
release:
types: [created]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Prepare toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- run: mkdir staging
- name: Upload the binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/release/zoltan.exe
asset_name: zoltan.exe
asset_content_type: application/vnd.microsoft.portable-executable

0 comments on commit 48d8f39

Please sign in to comment.