-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (27 loc) · 918 Bytes
/
release.yml
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
32
name: Publish (Patch)
on: [workflow_dispatch]
env:
CARGO_TERM_COLOR: always
jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Install cargo-release
run: cargo-binstall cargo-release
- name: Login to Cargo
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Git Config
run: git config user.name "GitHub Action" && git config user.email "[email protected]"
- name: Publish Release
run: cargo-release release patch --execute --no-confirm --config .github/workflows/cargo-release-patch.toml
- name: Logout of Cargo
if: always()
run: cargo logout