Skip to content

Commit

Permalink
release added
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatajagannath committed Aug 5, 2024
1 parent eee4ca9 commit 3634b53
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy to PyPi

on:
release:
types: [published]

jobs:
build:
name: Build wheels and source distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install build dependencies
run: python -m pip install --upgrade build

- name: Build source distribution
run: python -m build

- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error

publish:
name: Publish release
needs:
- build
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
path: dist

- name: Push build artifacts to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3634b53

Please sign in to comment.