π© Upgrade Wagtail (#98) #1
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
name: π Publish to PyPi | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: π¦ Build package | |
runs-on: ubuntu-latest | |
steps: | |
- name: π° Checkout | |
uses: actions/checkout@v3 | |
- name: π² Setup PDM | |
uses: pdm-project/setup-pdm@v3 | |
id: setup-python | |
with: | |
python-version: 3.x | |
- name: π Install dependencies | |
run: pdm install --prod | |
- name: ποΈ Build package | |
run: pdm build | |
- name: π« Export build files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
publish: | |
name: π Publish package | |
needs: build | |
runs-on: ubuntu-latest | |
environment: pypi | |
permissions: | |
id-token: write | |
steps: | |
- name: π¬ Download artifacts | |
uses: actions/download-artifact@v3 | |
- name: π Publish package | |
uses: pypa/gh-action-pypi-publish@release/v1 |