-
Notifications
You must be signed in to change notification settings - Fork 40
31 lines (29 loc) · 868 Bytes
/
release.yml
File metadata and controls
31 lines (29 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-workspaces
run: cargo install cargo-workspaces
- name: Publish (dry-run)
run: cargo ws publish --dry-run
- 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 ws publish --from-git --yes --no-git-commit skip