Skip to content

0.1.0-beta.1

0.1.0-beta.1 #2

Workflow file for this run

name: Test and Publish crate
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo test
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: cargo publish || true