Skip to content

Commit

Permalink
Enable auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Nov 17, 2024
1 parent 8123ce6 commit 1fa6b88
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
pull_request:
release:
types: [created]
types: [ created ]

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ ubuntu-latest ]
python-version:
[
"3.8",
Expand All @@ -38,3 +38,21 @@ jobs:

- name: Test with unittest
run: python -m unittest

deploy:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry

- name: Build Packages
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/action@v3.0.0
python-version: '3.13'
- uses: pre-commit/action@v3

0 comments on commit 1fa6b88

Please sign in to comment.