-
-
Notifications
You must be signed in to change notification settings - Fork 106
41 lines (34 loc) · 964 Bytes
/
tag.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
33
34
35
36
37
38
39
40
41
name: Create Release Tag
on:
workflow_dispatch:
inputs:
bump:
description: "Version bump type (major, minor, patch)"
required: true
default: "patch"
type: choice
options:
- major
- minor
- patch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Rust
uses: Swatinem/rust-cache@v2
- name: Install cargo-release
run: cargo install cargo-release
- name: Configure Git
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
- name: Run cargo release
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: |
cargo release ${{ github.event.inputs.bump }} --execute --no-confirm