Skip to content

0.1.16

0.1.16 #56

Workflow file for this run

name: Publish crates
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: Configuring git client
run: git config --global user.email "[email protected]" && git config --global user.name "Quentin Diebold (CI)"
- name: Switch to Rust stable
run: rustup default stable
- name: Build
run: cargo build --features ci
- name: Run tests
run: cargo test --features ci
- name: Install cargo-release
run: cargo install cargo-release
- name: Publish crate
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: yes | cargo-release release ${{ github.event.release.tag_name }} --execute --no-tag --no-verify --no-push --allow-branch \*
- name: Pushing changes
run: git add . && git push