Skip to content

Commit

Permalink
try new way
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfork committed Mar 21, 2024
1 parent 1637b0c commit 0dacdfc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/p/domdiv
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -17,10 +22,5 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build -w -s
twine upload dist/*
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0dacdfc

Please sign in to comment.