Skip to content

Commit

Permalink
still trying to fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko authored Nov 20, 2024
1 parent 8e2cf5b commit adfc4b7
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,23 @@ permissions:
contents: read

jobs:
publish:
deploy:
runs-on: ubuntu-latest

environment: release
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x # Adjust the Python version as needed

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build the package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
pip install setuptools wheel build
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit adfc4b7

Please sign in to comment.