diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index fe8c21f..0db2123 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -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", @@ -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 \ No newline at end of file diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8ac76f1..285b39d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 \ No newline at end of file + python-version: '3.13' + - uses: pre-commit/action@v3 \ No newline at end of file