Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 4472757

Browse files
author
noah
committed
Update to publish docs when it deploys
1 parent d7daad0 commit 4472757

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

.github/workflows/deploy-to-cloud.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,24 @@ jobs:
136136
state: "failure"
137137
token: "${{ github.token }}"
138138

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

.github/workflows/publish.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,3 @@ jobs:
4141
platforms: linux/amd64 # ,linux/arm64
4242
push: true
4343
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

0 commit comments

Comments
 (0)