Skip to content

Commit

Permalink
Merge pull request #109 from IFCA/feature-pypi-action
Browse files Browse the repository at this point in the history
Add publish.yml workflow
  • Loading branch information
jaime-cespedes-sisniega authored Aug 6, 2022
2 parents 32a5a77 + c0884db commit 5d6c8d7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v3
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: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 5d6c8d7

Please sign in to comment.