-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.24 KB
/
deploy_github_pages.yaml
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
name: CD Github Pages
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web_frontend
strategy:
matrix:
node-version: [20.x]
env:
NUXT_APP_BASE_URL: /messenger/
NUXT_APP_BUILD_ASSETS_DIR: /nuxt/
NUXT_PUBLIC_API_URL: "https://10.5.1.11:443"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
run: yarn install
# Build
- name: Build project
run: yarn nuxi generate
# Copy gh pages config
- name: Copy pages config
run: cp ./gh_pages_config.yml ./.output/public/_config.yml
# Deploy
- name: Deploy to Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: web_frontend/.output/public # The folder the action should deploy.