Skip to content

Commit

Permalink
chore: add a workflow to publish new tagged version of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Jun 27, 2023
1 parent 9732471 commit 5eac1b0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docs_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build and deploy
run: |
mike deploy --update-aliases --push --remote origin ${{ github.ref }} latest

0 comments on commit 5eac1b0

Please sign in to comment.