forked from openmultiplayer/web
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 933 Bytes
/
deploy-web.yml
File metadata and controls
40 lines (33 loc) · 933 Bytes
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
name: Deploy Frontend
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy frontend
runs-on: macos-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.12.1
with:
workflow_id: 42688838
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Cache ~/.npm for npm ci
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node
- uses: AmyrAhmady/omp-web-cache@v1.0
- name: Build frontend
run: |
cd frontend
npm i
DOCUSAURUS_IGNORE_SSG_WARNINGS=true npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: frontend/build
single-commit: true