This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
v4.1.0 #16
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 Release | |
on: | |
# The build will be triggered when we publish a release | |
release: | |
types: [published] | |
env: | |
PYTHON_VERSION: 3.9 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout Source 🐑 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python 💻 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Setup Poetry 🔧 | |
uses: ThePalaceProject/circulation/.github/actions/poetry@main | |
with: | |
version: "1.6.1" | |
- name: Install Dunamai 🏗 | |
run: | | |
poetry install --only ci | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Build & Publish 📚 | |
run: | | |
VERSION="$(dunamai from git)" | |
echo "Publishing version: $VERSION" | |
poetry version "$VERSION" | |
echo "__version__ = '$VERSION'" >> src/webpub_manifest_parser/_version.py | |
poetry publish --build | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} |