diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b710dc0..c91113f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,11 @@ jobs: build: needs: test runs-on: ubuntu-latest + permissions: + id-token: write + environment: + name: pypi + url: https://pypi.org/p/asyncapi-python steps: - uses: actions/checkout@v4 @@ -52,7 +57,8 @@ jobs: with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} - draft: true + draft: false + prerelease: false - name: Build sdist, wheel, and pex run: > @@ -90,3 +96,6 @@ jobs: asset_path: ./dist/asyncapi-python-codegen asset_name: asyncapi-python-codegen-${{ env.PROJECT_VERSION }}.pex asset_content_type: application/octet-stream + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1