Skip to content

Generate And Upload Artifacts To Release #3

Generate And Upload Artifacts To Release

Generate And Upload Artifacts To Release #3

Workflow file for this run

name: Generate And Upload Artifacts To Release
on:
release:
types: [created]
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Generate the first artifact
run: cargo build --release
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-gnu
override: true
- name: Generate the second artifact
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target x86_64-pc-windows-gnu
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "/target/release/blackcube-rs"