Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/MKastek/SimulatedLIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
MKastek committed Feb 25, 2023
2 parents c65819e + 436aa03 commit 3d02696
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: Publish to PyPI.org
name: Upload Python Package

on:
release:
types: [published]

jobs:
pypi:
deploy:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9' # the python version your want to build and upload your package with
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish new distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3d02696

Please sign in to comment.