-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (45 loc) · 1.14 KB
/
publish.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
42
43
44
45
46
47
name: Upload Python Package
on:
workflow_dispatch:
push:
tags:
- v**
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
run: |
python3 -m pip install -r requirements.txt
python3 -m pip install -r mkdocs_requirements.txt
python3 -m pip install -e .
- name: Build docs
run: mkdocs build -v
- name: Analyze
run: |
pwd
ls -lha
- name: Deploy gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: site
- name: set version
run: |
VERSION=${{ env.VERSION }}
- name: Create GitHub release entry
uses: softprops/action-gh-release@v2
id: create_release
with:
draft: false
prerelease: false
name: ${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ github.token }}