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
36 changes: 30 additions & 6 deletions .github/workflows/pypipublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand All @@ -17,10 +17,34 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install hatch twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Build
run: |
hatch build
twine upload dist/*
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: packages
path: dist/
if-no-files-found: error
compression-level: 0

deploy:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
id-token: write
environment:
name: pypi
url: https://pypi.org/p/fsspec
steps:
- name: Download artifact
uses: actions/download-artifact@v7
with:
name: packages
path: dist/
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
verbose: true