Merge pull request #37 from DaniilKimlb/docs/add-new-bastyon-repos #129
This file contains hidden or 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 to official Bastyon site | |
| on: | |
| workflow_dispatch: | |
| push: | |
| jobs: | |
| build_vue: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'pocketnetteam/documentation' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Build | |
| run: | | |
| npm i | |
| npm run docs:build | |
| - name: Save Artifact Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: ./docs/.vuepress/dist/ | |
| retention-days: 1 | |
| deploy_docs_bastyon_com: | |
| runs-on: docs.bastyon.com | |
| needs: build_vue | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: ./dist | |
| - name: Copy artifacts | |
| run: | | |
| rm -rf /data/docs/* | |
| cp -r ./dist/* /data/docs/ | |
| rm -rf * | |
| deploy_docs_pocketnet_app: | |
| runs-on: docs.bastyon.com | |
| needs: build_vue | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: ./dist | |
| - name: Copy artifacts | |
| run: | | |
| rm -rf /data/documentation/* | |
| cp -r ./dist/* /data/documentation/ | |
| rm -rf * |