-
-
Notifications
You must be signed in to change notification settings - Fork 131
37 lines (34 loc) · 1.01 KB
/
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
33
34
35
36
37
name: Release
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [master]
workflow_dispatch: {}
# Only allow one release workflow to execute at a time, since each release
# workflow uses shared resources (git tags, package registries)
concurrency:
group: ${{ github.workflow }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: "1.74.0"
- uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/github
semantic-release-cargo
env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}