0.1.14 #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |