Skip to content

Commit

Permalink
👷 pypi trusted release
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Apr 26, 2024
1 parent 7aa7b3f commit 6f58118
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ on:
release:
types:
- published
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
jobs:
pypi-publish:
name: PyPI
if: github.repository_owner == 'juftin'
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/camply
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand All @@ -29,10 +35,7 @@ jobs:
run: |
hatch build
- name: Publish package on PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

docker-hub-publish:
name: docker-hub
Expand Down

0 comments on commit 6f58118

Please sign in to comment.