File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build documentation
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ workflow_dispatch :
7+
8+ permissions :
9+ id-token : write
10+ pages : write
11+
12+ env :
13+ INSTANCE : " Writerside/biblioteca"
14+ ARTIFACT : " biblioteca.zip"
15+ DOCKER_VERSION : " 242.21870"
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Build docs using Writerside Docker builder
27+ uses : JetBrains/writerside-github-action@v4
28+ with :
29+ instance : ${{ env.INSTANCE }}
30+ artifact : ${{ env.ARTIFACT }}
31+ docker-version : ${{ env.DOCKER_VERSION }}
32+
33+ - name : Save artifact with build results
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : docs
37+ path : |
38+ artifacts/${{ env.ARTIFACT }}
39+ artifacts/report.json
40+ retention-days : 1
41+ deploy :
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+ needs : build
46+ runs-on : ubuntu-latest
47+ steps :
48+ - name : Download artifacts
49+ uses : actions/download-artifact@v4
50+ with :
51+ name : docs
52+
53+ - name : Unzip artifact
54+ run : unzip -O UTF-8 -qq '${{ env.ARTIFACT }}' -d dir
55+
56+ - name : Setup Pages
57+ uses : actions/configure-pages@v4
58+
59+ - name : Package and upload Pages artifact
60+ uses : actions/upload-pages-artifact@v3
61+ with :
62+ path : dir
63+
64+ - name : Deploy to GitHub Pages
65+ id : deployment
66+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments