Skip to content

Commit

Permalink
test pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 19, 2024
1 parent e290656 commit 6ce1b56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
# poetry build
- name: Build package
run: poetry build
- name: Mint token
id: mint
uses: tschm/[email protected]
- name: Publish the package with poetry
run: |
poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}'
poetry publish -u __token__ -p '${{ secrets.PYPI_API_TOKEN }}'
36 changes: 14 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,24 @@ on:
- main
# - release
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Hello World
run: echo "Hello World"
setup-and-test:
uses: ./.github/workflows/unit-test.yml
with:
os: ubuntu-latest
secrets: inherit
# setup-and-test:
# uses: ./.github/workflows/unit-test.yml
# with:
# os: ubuntu-latest
# secrets: inherit
publish-python-package:
if: github.repository == 'Admyral-Security/admyral'
needs:
- setup-and-test
# needs:
# - setup-and-test
uses: ./.github/workflows/publish-to-pypi.yml
# Set permissions for trusted publishing.
permissions:
id-token: write
contents: read
secrets: inherit
publish-docker-images:
if: github.repository == 'Admyral-Security/admyral'
needs:
- setup-and-test
uses: ./.github/workflows/publish-docker-hub.yml
secrets: inherit
# publish-docker-images:
# if: github.repository == 'Admyral-Security/admyral'
# needs:
# - setup-and-test
# uses: ./.github/workflows/publish-docker-hub.yml
# secrets: inherit

0 comments on commit 6ce1b56

Please sign in to comment.