forked from AzHicham/openslide-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.5 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
38
39
40
41
42
43
44
45
46
47
48
name: Release
on:
workflow_dispatch: # only for release on develop branch
push:
branches:
- main
- rc
- experimental
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x"
# 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:
runs-on: ubuntu-22.04
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # Semantic release need use SCOPED_GITHUB_TOKEN to create release
- name: Install semantic-release-cargo
uses: EricCrosson/install-github-release-binary@v2
with:
targets: semantic-release-cargo/[email protected]
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.SCOPED_GITHUB_TOKEN }}
with:
semantic_version: 22.0.6
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
@semantic-release/[email protected]
@saithodev/[email protected]