Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .github/workflows/foxpuppet_deploy.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down