Skip to content

fix(ci): typo

fix(ci): typo #13

Workflow file for this run

name: build
on:
push:
branches:
- main
- dev
tags:
- "v*"
env:
ARTIFACT_NAME: rusty-grader-${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
- run: cargo build --release --target x86_64-unknown-linux-gnu && cp target/x86_64-unknown-linux-gnu/release/interface rusty-grader
- uses: actions/upload-artifact@v3
with:
name: rusty-grader
path: rusty-grader
- name: Prepare tarball for release
if: startsWith(github.ref, 'refs/tag/')
run: tar zcvf $ARTIFACT_NAME rusty-grader
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.ARTIFACT_NAME }}