Fix: Don't use std.meta.trait (#263) #59
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 | |
on: | |
push: | |
tags: ['*'] | |
permissions: | |
id-token: write | |
contents: write | |
env: | |
POETRY_VERSION: "1.6.1" | |
PYTHON_VERSION: "3.11" | |
jobs: | |
publish: | |
environment: | |
name: pypi | |
url: https://pypi.org/p/ziggy-pydust | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Needed for docs to discover gh-pages branch | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
id: setup-python | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Load cached Poetry installation | |
id: cached-poetry | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local | |
key: poetry-${{ runner.os }}-${{ env.POETRY_VERSION }}-${{ steps.setup-python.outputs.python-version }} | |
- name: Install Poetry | |
id: install-poetry | |
if: steps.cached-poetry.outputs.cache-hit != 'true' | |
uses: snok/install-poetry@v1 | |
# If changing any of these, you must comment out the if statement above. | |
with: | |
version: ${{ env.POETRY_VERSION }} | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Poetry git plugin | |
run: poetry self add poetry-git-version-plugin | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Poetry Build | |
run: poetry build -v | |
- name: Poetry Install | |
run: poetry install -v --only=docs | |
- name: Zig Docs Build | |
run: poetry run python -m ziglang build docs | |
- name: Setup doc deploy | |
run: | | |
git config --global user.name Docs Deploy | |
git config --global user.email docs@dummy.bot.com | |
- name: Get Version | |
id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: MKDocs Build | |
run: poetry run mike deploy ${{ steps.get_version.outputs.major }}.${{ steps.get_version.outputs.minor }} latest --push --update-aliases | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |