-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.01 KB
/
prod-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
name: Prod Deploy
on:
workflow_dispatch:
jobs:
deploy:
if: ${{github.ref == 'refs/heads/prod'}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node v18
uses: actions/setup-node@v1
with:
node-version: v18.16.0
- uses: actions/cache@v3
with:
path: |
.next
.yarn/cache
./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn export
- name: Deploy Gh-Pages 🚀
uses: hpcodecraft/[email protected]
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.DECOO_PAT }}
SRC_FOLDER: out
DEST_OWNER: decooio
DEST_REPO: cloud3-home-prod-deploy
DEST_BRANCH: main
DEST_FOLDER: docs