File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy Documentation to GitHub Pages
1
+ name : Test Building (and Deploy Documentation to GitHub Pages)
2
2
3
3
on :
4
- workflow_dispatch : {}
4
+ workflow_dispatch :
5
5
push :
6
- branches :
7
- - master
8
6
9
7
permissions :
10
8
contents : read
23
21
node-version : 18
24
22
cache : npm
25
23
- name : Setup Pages
24
+ if : ${{ github.repository == 'slusarz/dovecot-fts-flatcurve' && github.ref == 'refs/heads/master' }}
26
25
uses : actions/configure-pages@v3
27
26
- name : Install Dependencies
28
27
run : npm ci
@@ -31,11 +30,13 @@ jobs:
31
30
npm run docs:build
32
31
touch docs/.vitepress/dist/.nojekyll
33
32
- name : Upload Artifact
33
+ if : ${{ github.repository == 'slusarz/dovecot-fts-flatcurve' && github.ref == 'refs/heads/master' }}
34
34
uses : actions/upload-pages-artifact@v2
35
35
with :
36
36
path : docs/.vitepress/dist
37
37
38
38
deploy :
39
+ if : ${{ github.repository == 'slusarz/dovecot-fts-flatcurve' && github.ref == 'refs/heads/master' }}
39
40
environment :
40
41
name : github-pages
41
42
url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments