v1.4.4 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
description: 'Version to publish' | |
jobs: | |
pypi_publish: | |
name: Publish to PyPI π¦ | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi-publish | |
url: https://pypi.org/p/markdown_spa | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Setup Python π | |
uses: actions/[email protected] | |
with: | |
python-version: 3.x | |
- name: Build ποΈ | |
run: | | |
python -m pip install flit markdown jinja2 pygments click requests importlib_metadata | |
python -m flit build | |
env: | |
MARKDOWN_SPA_VERSION: ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.version }} | |
- name: Publish π | |
uses: pypa/gh-action-pypi-publish@release/v1 |