diff --git a/.github/workflows/publish-aur.yaml b/.github/workflows/publish-aur.yaml index 03c8f41..e549f13 100644 --- a/.github/workflows/publish-aur.yaml +++ b/.github/workflows/publish-aur.yaml @@ -1,4 +1,4 @@ -name: Publish to AUR +name: Upload to Arch Linux User Repository (AUR) on: workflow_run: diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 7e0b4fa..95752b7 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -1,39 +1,30 @@ -name: Publish to PyPI +name: Upload Python Package on: - workflow_run: - workflows: ["Release Test"] - types: - - completed + release: + types: [published] + +permissions: + contents: read jobs: deploy: runs-on: ubuntu-latest steps: - - name: Check out the repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build twine - - - name: Build the package - run: | - rm -rf dist # Clean up any previous builds - python -m build - - - name: Publish to PyPI - env: - TWINE_USERNAME: "__token__" - TWINE_PASSWORD: ${{ secrets.TWINE_PAT }} - run: | - twine upload dist/* + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.TWINE_PAT }}