-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.01 KB
/
release.yaml
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: Tag and Release
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-edit
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-get
- run: cargo set-version --bump minor --locked
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "szkabaroli"
git commit -a -m "[skip ci] Bump versions"
git tag $(cargo get package.version --pretty)
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true