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

32 lines
632 B
YAML
Raw Normal View History

2021-12-22 08:36:16 +03:00
name: Publish to PyPI
2021-12-15 09:19:01 +03:00
on:
push:
tags:
2021-12-22 08:36:16 +03:00
- 'v*'
2021-12-15 09:19:01 +03:00
jobs:
publish_to_pypi:
2021-12-16 08:37:52 +03:00
name: Push Package to PyPI
2021-12-15 09:19:01 +03:00
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
2021-12-23 07:17:19 +03:00
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
2021-12-16 08:37:52 +03:00
2021-12-23 07:17:19 +03:00
- name: Install dependencies
run: pip install build
2021-12-15 09:19:01 +03:00
- name: Build package
run: python -m build
2021-12-15 09:19:01 +03:00
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}