workflows are jobs #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PyPI | ||
on: | ||
push: | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
permissions: | ||
actions: read | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
dist: | ||
name: Build and upload sdist and wheel | ||
uses: .github/workflows/build-distributions.yml | ||
publish: | ||
needs: [dist] | ||
runs-on: ubuntu-latest | ||
# if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
- name: list dist | ||
run: ls -lha dist/ | ||
# - uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# password: ${{ secrets.pypi_password }} |