Skip to content

Commit

Permalink
Fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
leifgehrmann committed Jun 24, 2024
1 parent 147a58b commit 6b2e649
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
name: Publish

on:
workflow_dispatch:

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Create dist
run: |
pwd
ls -l .
python setup.py sdist
ls -l .
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6b2e649

Please sign in to comment.