-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (41 loc) · 1.13 KB
/
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
37
38
39
40
41
name: Build Docs and Publish to gh-pages
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
- "CHANGELOG.md"
- "**/README.md"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: write
jobs:
publish_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Git client setup
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set version
run: |
export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
- name: Test
run: |
echo ${RELEASE_TAG_VERSION}
# - name: Build docs
# run: make docs-build VERSION=$RELEASE_VERSION
# - name: Deploy Docs
# run: make docs-deploy VERSION=$RELEASE_VERSION