From cb26ab14b1187d4507971577d68a4fe6c9fb5e3c Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Fri, 24 Jan 2025 13:02:19 +0400 Subject: [PATCH] install hatch --- actions/publish/action.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/actions/publish/action.yml b/actions/publish/action.yml index 0a141ec8..7f0c6ad6 100644 --- a/actions/publish/action.yml +++ b/actions/publish/action.yml @@ -14,27 +14,26 @@ name: Publish Python Package description: "Publish dist" +permissions: + # This permission is required for trusted publishing. + id-token: write + +inputs: + url: + description: 'url of pypi' + required: true runs: using: "composite" steps: - - uses: actions/setup-python@v5 - # Download the dist folder from the build job - uses: actions/download-artifact@v4 with: name: dist path: dist - # Generate the token - - name: Mint token - id: mint - uses: tschm/token-mint-action@v1.0.3 - - # Install twine and upload the dist folder using the token - - name: Publish the package - shell: bash - run: | - pip install twine - twine upload --verbose -u __token__ -p '${{ steps.mint.outputs.api-token }}' dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: ${inputs.url}