Skip to content

Merge pull request #3 from ofersadan85/dependabot/github_actions/acti… #19

Merge pull request #3 from ofersadan85/dependabot/github_actions/acti…

Merge pull request #3 from ofersadan85/dependabot/github_actions/acti… #19

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches: ["main"]
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
jobs:
publish:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --all-targets --all-features --verbose
- name: Publish to crates.io
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}