Skip to content

Commit

Permalink
move to PyPI trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
samschott committed Mar 15, 2024
1 parent c32968a commit 91c785d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
pypi:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/maestral
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
Expand All @@ -18,12 +23,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build
- name: Build and publish
- name: Build
run: |
python -m build
twine upload dist/* --skip-existing
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

docker-hub:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 91c785d

Please sign in to comment.