-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.39 KB
/
main.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI-CD
# run on any push to any directory and a pull to main or development
on:
push:
pull_request:
branches:
- main
- development
jobs:
################################################################################################
# Docs: Build and deploy mkdocs documentation
################################################################################################
Docs:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
# Need to give the action permission to write to the repository to deploy the docs
contents: write
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Check-out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Install Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.34.0
cache: true
locked: false
- name: Build documentation
run: pixi run build
- name: Build and deploy documentation (only on push to main)
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: pixi run mike deploy --push dev devel