Skip to content

Merge pull request #2 from codetiger/main #2

Merge pull request #2 from codetiger/main

Merge pull request #2 from codetiger/main #2

Workflow file for this run

name: Release Crates
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-release
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-release
version: '^0.25'
- name: Configure git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Run tests
run: cargo test
- name: Release and publish crates
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cargo release patch --execute --no-confirm