forked from pocketnetteam/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.24 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
# - name: Copy artifacts
# run: |
# rm -rf /data/docs/*
# cp -r ./dist/* /data/docs/
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 *