Skip to content

Commit

Permalink
deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-rsingh committed Mar 17, 2024
1 parent accc33a commit a91c52d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PyPI Deployment

on:
push:
branches:
- main # Adjust this to match your main branch name

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x # Specify the Python version you're using

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine build # Install necessary packages for deployment
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*

0 comments on commit a91c52d

Please sign in to comment.