-
-
Notifications
You must be signed in to change notification settings - Fork 93
36 lines (36 loc) · 996 Bytes
/
deploy-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Documentation using MkDocs
on:
push:
# Pattern matched against refs/tags
tags:
- '**'
jobs:
build:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install Poetry
uses: snok/[email protected]
with:
version: 1.8.4
virtualenvs-create: false
- name: Install dependencies
run: |
poetry install --extras "all"
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Deploy
run: |
mike deploy --push --update-aliases ${{ env.RELEASE_VERSION }} latest