Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Mar 2, 2024
1 parent 8466a5a commit 1cffe02
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Release
on:
release:
types: [published]

jobs:
publish:
name: Publish crates
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install cargo-workspaces
uses: actions-rs/[email protected]
with:
crate: cargo-workspaces

- name: Release
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PATCH: ${{ github.run_number }}
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
cargo workspaces publish \
--from-git \
--yes \
--no-git-commit \
skip

0 comments on commit 1cffe02

Please sign in to comment.