From 31edd1ee2536e623d00dde722f62835314ce0c2d Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Mon, 8 Apr 2024 07:16:37 -0400 Subject: [PATCH] Updating Tag Action (#464) --- .github/workflows/tag-actions.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tag-actions.yml b/.github/workflows/tag-actions.yml index 9c5d08fc..12be66aa 100644 --- a/.github/workflows/tag-actions.yml +++ b/.github/workflows/tag-actions.yml @@ -26,6 +26,12 @@ jobs: pypi-publish: name: PyPI Publish runs-on: ubuntu-latest + environment: + name: release + url: https://pypi.org/p/brewtils + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v2 @@ -48,13 +54,11 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish - continue-on-error: true - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: make publish-package + - name: Make Package + run: make package + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 pypi-verify: name: Verify PyPI Publish