1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added workflow for library package

This commit is contained in:
krateng 2021-12-24 07:15:59 +01:00
parent 5651626c39
commit f2dd5862e2
2 changed files with 37 additions and 1 deletions

View File

@ -19,7 +19,7 @@ jobs:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
run: pip install build doreah run: pip install build
- name: Build package - name: Build package
run: python -m build run: python -m build

36
.github/workflows/pypi_lib.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Publish library to PyPI
on:
push:
paths:
- 'auxiliary/malojalib/pyproject.toml'
# When the version updates, this file changes
# False positives only result in a failed push
jobs:
publish_to_pypi:
name: Push Library to PyPI
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install build
- name: Change directory
run: cd auxiliary/malojalib
- 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 }}