Skip to content

Commit 4bdd187

Browse files
committed
ci: release workflow configuration and auth
1 parent c519e66 commit 4bdd187

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: Release
22

3-
permissions:
4-
contents: write
5-
pull-requests: write
6-
issues: write
7-
83
on:
94
workflow_dispatch:
105

116
jobs:
127
release:
138
name: Create Release
149
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
issues: write
1514
steps:
1615
- name: Checkout code
1716
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1819

1920
- name: Setup Python
2021
uses: actions/setup-python@v5
@@ -41,6 +42,7 @@ jobs:
4142
4243
- name: Create Release
4344
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4446
GIT_USER_NAME: "github-actions[bot]"
4547
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
4648
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"

.releaserc.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dryRun: false
2+
debug: true
3+
4+
branches:
5+
- name: main
6+
7+
# Order matters
8+
plugins:
9+
- "@semantic-release/commit-analyzer"
10+
11+
- "@semantic-release/release-notes-generator"
12+
13+
- "@semantic-release/changelog"
14+
15+
- - "@semantic-release/exec"
16+
- prepareCommand: uv version ${nextRelease.version}
17+
18+
- - "@semantic-release/git"
19+
- message: 'chore(release): ${nextRelease.version} \n\n${nextRelease.notes}'
20+
assets:
21+
- CHANGELOG.md
22+
- pyproject.toml
23+
- uv.lock
24+
25+
- "@semantic-release/github"

0 commit comments

Comments
 (0)