Skip to content

Commit 1b0b719

Browse files
committed
Enable auto release
1 parent 8123ce6 commit 1b0b719

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
push:
55
pull_request:
66
release:
7-
types: [created]
7+
types: [ created ]
88

99
jobs:
1010
test:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-latest]
14+
os: [ ubuntu-latest ]
1515
python-version:
1616
[
1717
"3.8",
@@ -38,3 +38,21 @@ jobs:
3838

3939
- name: Test with unittest
4040
run: python -m unittest
41+
42+
deploy:
43+
needs: test
44+
runs-on: ubuntu-latest
45+
if: github.event_name == 'release' && github.event.action == 'created'
46+
permissions:
47+
id-token: write
48+
steps:
49+
- uses: actions/checkout@v3
50+
51+
- name: Install poetry
52+
run: pipx install poetry
53+
54+
- name: Build Packages
55+
run: poetry build
56+
57+
- name: Publish package distributions to PyPI
58+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-python@v4
1313
with:
14-
python-version: '3.10'
15-
- uses: pre-commit/action@v3.0.0
14+
python-version: '3.13'
15+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)