Skip to content

Commit

Permalink
Configuring actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalrussell committed Dec 17, 2024
1 parent a8ca131 commit 9df65b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/configure-pages@v3

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/*.tar.gz

build_wheels:
Expand All @@ -43,20 +44,24 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: release-dists
path: wheelhouse/*.whl

upload_all:
name: Upload if release
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/snail
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/setup-python@v4

- uses: actions/download-artifact@v4
with:
name: artifact
name: release-dists
path: dist

- name: Deploy to PyPI
Expand Down

0 comments on commit 9df65b4

Please sign in to comment.