Skip to content

Commit

Permalink
Add release workflow (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat authored Mar 3, 2024
1 parent e0c3f69 commit 2c6cf33
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Release

on:
release:
types: [published]

jobs:
publish:
name: Publish crate
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Package (dry-run)
run: cargo package
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PATCH: ${{ github.run_number }}
shell: bash
run: |
git config --global user.email "runner@gha.local"
git config --global user.name "Github Action"
cargo publish

0 comments on commit 2c6cf33

Please sign in to comment.