Skip to content

Commit

Permalink
Create publish-to-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cortega26 authored May 2, 2024
1 parent 5255320 commit 0d4f427
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Python Package to PyPI

on:
push:
branches: [main]

jobs:

build-and-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

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

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: cortega
password: ${{ secrets.rutificador }}

0 comments on commit 0d4f427

Please sign in to comment.