Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Publishing 🚀
  • Loading branch information
itsmeadarsh2008 authored Apr 27, 2024
1 parent 25dd5ea commit c7a24db
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish to PyPI

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

jobs:
build:
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' # Change this to your desired Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit c7a24db

Please sign in to comment.