diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2090cdc..2ed77ad 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,9 @@ name: Publish on: - release: - types: [published] + workflow_run: + workflows: [Build] + types: [completed] workflow_dispatch: permissions: @@ -15,6 +16,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pdm-project/setup-pdm@v4 - - name: Publish to PyPI - run: pdm publish + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Create Dist Directory + run: mkdir dist + + - name: Download Relase Sdist and Wheel + run: gh release download ${GITHUB_REF_NAME} --pattern "anycastd-*" --dir dist + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1