forked from container-desktop/container-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.17 KB
/
docs.yml
File metadata and controls
39 lines (37 loc) · 1.17 KB
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
37
38
39
name: docs
on:
push:
branches:
- main
tags:
# only run on for releases, beta and docs releases
- v*
jobs:
build:
runs-on: ubuntu-22.04
container:
image: python:3.9
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Requirements
run: pip install -r ./docs/requirements.txt
- name: Build with MkDocs (validation)
run: |
git config --global --add safe.directory /__w/container-desktop/container-desktop
mkdocs build --verbose --clean
rm -r site/
- name: Configure Git
if: startsWith(github.ref, 'refs/tags/')
id: git
run: |
git config --global user.name pipeline-container-desktop.io
git config --global user.email pipeline@container-desktop.io
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Build & Deploy with Mike (versioned)
if: startsWith(github.ref, 'refs/tags/')
#mike deploy --branch gh-pages --push test
run: |
mike deploy --update-aliases --push ${{ steps.git.outputs.tag }} latest