Skip to content

Commit

Permalink
#53: Removed the new publish workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hkage committed Mar 14, 2024
1 parent 6d1474e commit a875626
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@ on:

jobs:
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: production
url: https://pypi.org/project/pganonymize/
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
environment: production
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build and publish
run: python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit a875626

Please sign in to comment.