Skip to content

v0.3.1

v0.3.1 #10

Workflow file for this run

# PyPI upload appletree after a release (or manually).
## Mostly based on https://github.com/marketplace/actions/pypi-publish
name: PyPI
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Setup steps
- name: Setup python
uses: actions/setup-python@v4.2.0
with:
python-version: '3.8'
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies
run: pip install wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
# Do the publishing
# Might want to add but does not work on workflow_dispatch :
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.token }}
password: ${{ secrets.pypi_password }}