* post only if > 0 * since todays date * pypi workflow * test token * fix test * long description * simpler names * more simple * no test pypi in master * publish only on master
32 lines
No EOL
739 B
YAML
32 lines
No EOL
739 B
YAML
name: ytld-sub PyPI
|
|
on:
|
|
push:
|
|
# publish only when pushed to master
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
name: build-and-publish
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [ "3.10" ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Build Wheel
|
|
run: |
|
|
make wheel
|
|
|
|
- name: Publish distribution 📦 to PyPI
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
password: ${{ secrets.PYPI_API_TOKEN }} |