This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -136,3 +136,24 @@ jobs:
136
136
state : " failure"
137
137
token : " ${{ github.token }}"
138
138
139
+ # Publish docs when it deploys to the production environment.
140
+ publish-docs :
141
+ runs-on : ubuntu-latest
142
+ if : ${{ github.event.deployment.environment == 'production' }}
143
+ steps :
144
+ -
145
+ uses : actions/checkout@v2
146
+ -
147
+ name : Create requirements.txt
148
+ uses : " finnp/create-file-action@master"
149
+ env :
150
+ FILE_NAME : requirements.txt
151
+ FILE_DATA : |
152
+ pymdown-extensions==8.2
153
+ -
154
+ name : Publish docs
155
+ uses : mhausenblas/mkdocs-deploy-gh-pages@master
156
+ env :
157
+ GITHUB_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
158
+ CUSTOM_DOMAIN : docs.gitploy.io
159
+ REQUIREMENTS : requirements.txt
Original file line number Diff line number Diff line change 41
41
platforms : linux/amd64 # ,linux/arm64
42
42
push : true
43
43
tags : ${{ steps.docker_meta.outputs.tags }}
44
-
45
- publish-docs :
46
- runs-on : ubuntu-latest
47
- steps :
48
- -
49
- uses : actions/checkout@v2
50
- -
51
- name : Create requirements.txt
52
- uses : " finnp/create-file-action@master"
53
- env :
54
- FILE_NAME : requirements.txt
55
- FILE_DATA : |
56
- pymdown-extensions==8.2
57
- -
58
- name : Publish docs
59
- uses : mhausenblas/mkdocs-deploy-gh-pages@master
60
- env :
61
- GITHUB_TOKEN : ${{ secrets.DEPLOY_TOKEN }}
62
- CUSTOM_DOMAIN : docs.gitploy.io
63
- REQUIREMENTS : requirements.txt
You can’t perform that action at this time.
0 commit comments