continuous changes to documentation #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install | |
run: npm i | |
- name: Build | |
run: npm run build | |
- name: Save Artifact Build | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: build/ | |
retention-days: 1 | |
- name: Save Artifact Assets | |
uses: actions/upload-artifact@v2 | |
with: | |
name: assets | |
path: assets/ | |
retention-days: 1 | |
deploy_win: | |
runs-on: docs-en-deploy | |
needs: build | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
- name: Copy artifacts | |
run: | | |
cp -Recurse -Force ./build/site/* c:/inetpub/wwwroot/docs/en/ | |
cp -Recurse -Force ./assets/* c:/inetpub/wwwroot/docs/ -Exclude @("site") | |
deploy_docs_bastyon_com: | |
runs-on: docs.bastyon.com | |
needs: build | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
- name: Copy artifacts | |
run: | | |
cp -r ./build/site/* /data/docs/en/ | |
cp -r ./assets/* /data/docs/ |