Skip to content

Commit f82f660

Browse files
authored
feat: semantic release integration (#218)
1 parent b5ab5e2 commit f82f660

File tree

6 files changed

+1044
-13
lines changed

6 files changed

+1044
-13
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- "*.*.*"
4+
workflow_dispatch:
75

86
jobs:
97
release:
108
name: Release
119
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: write
1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v4
@@ -17,11 +18,18 @@ jobs:
1718
with:
1819
python-version: "3.10"
1920
- name: Install Poetry
20-
run: curl -sSL https://install.python-poetry.org | python - -y
21+
run: |
22+
curl -sSL https://install.python-poetry.org | python - -y
23+
poetry install
24+
- name: Release
25+
run: |
26+
poetry run semantic-release version
27+
poetry run semantic-release publish
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2130
- name: Build
2231
run: poetry build
2332
- name: Publish
2433
env:
2534
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
26-
run:
27-
poetry publish
35+
run: poetry publish

0 commit comments

Comments
 (0)