Skip to content

Commit

Permalink
Merge pull request #2 from Okroshiashvili/dev
Browse files Browse the repository at this point in the history
Update Github Action
  • Loading branch information
Okroshiashvili authored Sep 24, 2024
2 parents b047f8d + 651ea5e commit 3acb965
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:

jobs:
build:
name: Build distribution πŸ“¦
name: Build πŸ“¦
runs-on: ubuntu-latest

steps:
Expand All @@ -39,8 +39,8 @@ jobs:

# Publish to TestPyPI on every pull request to `dev` branch
publish-to-test-pypi:
name: Publish Python 🐍 distribution πŸ“¦ to TestPyPI
if: github.repository_owner == 'Okroshiashvili' && github.event_name == 'pull_request' && github.ref == 'refs/heads/dev'
name: Publish πŸ“¦ to TestPyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -53,15 +53,14 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to TestPyPI
- name: Publish πŸ“¦ to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

# Publish to PyPI on every pull request to `main` branch
publish-to-pypi:
name: >-
Publish Python 🐍 distribution πŸ“¦ to PyPI
name: Publish πŸ“¦ to PyPI
if: github.repository_owner == 'Okroshiashvili' && github.event_name == 'pull_request' && github.ref == 'refs/heads/main'
needs:
- build
Expand All @@ -75,15 +74,13 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to PyPI
- name: Publish πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true

github-release:
name: >-
Sign the Python 🐍 distribution πŸ“¦ with Sigstore
and upload them to GitHub Release
name: Sign the πŸ“¦ with Sigstore and upload them to GitHub Release
needs:
- publish-to-pypi
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3acb965

Please sign in to comment.