Skip to content

Merge pull request #190 from mre/dependabot/cargo/anyhow-1.0.89 #263

Merge pull request #190 from mre/dependabot/cargo/anyhow-1.0.89

Merge pull request #190 from mre/dependabot/cargo/anyhow-1.0.89 #263

Workflow file for this run

name: Rust
on:
repository_dispatch:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
publish:
name: Publish
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty