Skip to content

add build script

add build script #1

Workflow file for this run

name: default
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
deploy-to-pypi:
needs: [lint]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build jail
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Release to GitHub
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
dist/*.whl
dist/*.tar.gz