Skip to content

Commit

Permalink
Use trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 16, 2024
1 parent f3f5c4a commit 9ec89ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Relenv Python Package

on:
workflow_call:
secrets:
PYPI_API_TOKEN:
required: true
on: workflow_call

jobs:
build:
name: Publish Python Wheel
runs-on: ubuntu-latest
steps:
- name: Download Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Download Python Package Artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true
skip-existing: true
verify-metadata: true
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
permissions:
contents: write
pull-requests: read
id-token: write
uses: ./.github/workflows/ci.yml
if: contains('["dwoz","MKLeb","s0undt3ch"]', github.actor)
if: contains('["dwoz", "twangboy", "dmurhpy18"]', github.actor)
with:
kind: "${{ inputs.kind }}"
package_command: "${{ inputs.package_command }}"
Expand Down

0 comments on commit 9ec89ca

Please sign in to comment.