File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v3
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v4
21+ with :
22+ go-version : ' 1.21'
23+
24+ - name : Install Go Task
25+ run : |
26+ curl -L https://github.com/go-task/task/releases/download/v3.14.0/task_linux_amd64.tar.gz | tar xz
27+ sudo mv task /usr/local/bin/
28+
29+ - name : Set up Python
30+ uses : actions/setup-python@v4
31+ with :
32+ python-version : ' 3.11'
33+
34+ - name : Install dependencies
35+ run : |
36+ pip install --upgrade pip
37+ pip install pipenv
38+ pipenv install --deploy
39+
40+ - name : Build documentation
41+ run : |
42+ task build
43+
44+ - name : Deploy to GitHub Pages
45+ if : github.ref == 'refs/heads/main'
46+ uses : peaceiris/actions-gh-pages@v3
47+ with :
48+ github_token : ${{ secrets.GITHUB_TOKEN }}
49+ publish_dir : ./site
You can’t perform that action at this time.
0 commit comments