Skip to content

Commit

Permalink
feat/check-v2 clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Jul 3, 2024
1 parent 6772d8f commit b40582e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
if: ${{ github.event.pull_request.merged }}
name: test the package build
runs-on: ubuntu-latest
permissions:
Expand All @@ -31,7 +33,6 @@ jobs:
pip3 install .
pip3 install ".[dep]"
build-n-publish:
if: ${{ github.event.pull_request.merged }}
needs: build
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
Expand All @@ -53,6 +54,13 @@ jobs:
run: python -m build

- name: Publish release distributions to PyPI
if: |
${{(
github.event_name == 'pull_request'
&& github.head_ref == '/refs/heads/main'
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
)}}
uses: pypa/gh-action-pypi-publish@release/v1

Check failure on line 64 in .github/workflows/publish-to-pypi.yml

View workflow job for this annotation

GitHub Actions / pre-commit

64:9 syntax error: could not find expected ':' (syntax)

Check failure on line 64 in .github/workflows/publish-to-pypi.yml

View workflow job for this annotation

GitHub Actions / pre-commit

64:9 syntax error: could not find expected ':' (syntax)

Check failure on line 64 in .github/workflows/publish-to-pypi.yml

View workflow job for this annotation

GitHub Actions / pre-commit

64:9 syntax error: could not find expected ':' (syntax)
with:
skip-existing: true

0 comments on commit b40582e

Please sign in to comment.