diff --git a/.github/workflows/foxpuppet_deploy.yml b/.github/workflows/foxpuppet_deploy.yml index 8556e13..4dffba5 100644 --- a/.github/workflows/foxpuppet_deploy.yml +++ b/.github/workflows/foxpuppet_deploy.yml @@ -1,9 +1,15 @@ name: Publish to PyPI on: - push: - tags: - - "v[0-9]+.[0-9]+.[0-9]+" + pull_request: + # Sequence of patterns matched against refs/heads + branches: + - main + +# on: +# push: +# tags: +# - "v[0-9]+.[0-9]+.[0-9]+" env: PYTHON_VERSION: '3.12' @@ -79,10 +85,16 @@ jobs: results/geckodriver.log retention-days: 14 - - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Upload Package Artifacts + uses: actions/upload-artifact@v4 with: - password: ${{ secrets.PYPI_API_TOKEN }} + name: package-artifacts + path: dist/ + + # - name: Publish to PyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # password: ${{ secrets.PYPI_API_TOKEN }} create-release: name: Create GitHub Release @@ -92,6 +104,16 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: package-artifacts + path: dist/ + + - name: Verify Artifacts + run: | + ls -al dist + - name: Create Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}