Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 710b7bf

Browse files
Anton BilovusTigge
authored andcommitted
ci: deploy new docs on merge to main branch
1 parent 8e082fd commit 710b7bf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/verify.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,29 @@ jobs:
115115
yarn build:docs --env base="/practical-react-components/" --env prod="true"
116116
git diff --exit-code
117117
tar zcvf docs-static.tgz -C packages/docs dist
118+
- name: Archive docs files
119+
uses: actions/upload-artifact@v2
120+
with:
121+
name: docs-static
122+
path: docs-static.tgz
123+
124+
deploy-docs:
125+
needs: [docs, ui-tests]
126+
runs-on: ubuntu-20.04
127+
steps:
128+
- name: Download docs files
129+
uses: actions/download-artifact@v2
130+
with:
131+
name: docs-static
132+
- name: Extract docs files
133+
if: ${{ github.event_name != 'pull_request' }}
134+
run: |
135+
tar zxvf docs-static.tgz
136+
- name: Deploy docs 🚀
137+
if: ${{ github.event_name != 'pull_request' }}
138+
uses: JamesIves/github-pages-deploy-action@3.7.1
139+
with:
140+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141+
BRANCH: docs # The branch the action should deploy to.
142+
FOLDER: dist # The folder the action should deploy.
143+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)