Skip to content

v0.1.3

v0.1.3 #3

Workflow file for this run

name: Update docs
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
ref: docs
fetch-tags: true
token: ${{ secrets.RELEASE_PAT_TOKEN }} # Needed to trigger other actions
- name: Configure git
run: |
git config --global user.name 'BotReleaser'
git config --global user.email '[email protected]'
- name: Merge latest code
run: |
git fetch --prune
git merge refs/tags/${{ github.ref_name }}
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.10"
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install deps
run: make setup
- name: Build the docs
run: make doc
- name: Adding built docs
run: |
git add -f ./docs
git commit -m "Docs for latest tag" --allow-empty
- name: Push to docs
run: |
git push origin docs