-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 809 Bytes
/
release.yaml
File metadata and controls
34 lines (31 loc) · 809 Bytes
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
---
name: Release
"on":
push:
branches:
- main
jobs:
release:
name: "Release"
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: semantic-release
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }}
- name: Semantic release
run: |
docker run --rm \
--user 1001 \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
-e GITHUB_TOKEN=${{ secrets.SEMANTIC_RELEASE_TOKEN || secrets.GITHUB_TOKEN }} \
-e CI=true \
ghcr.io/disafronov/semantic-release:latest