Skip to content

Commit

Permalink
Add publishing to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
WiZeYAR committed Nov 17, 2024
1 parent 05ffc19 commit cc6dc6d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: >
Expand Down Expand Up @@ -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

0 comments on commit cc6dc6d

Please sign in to comment.