generated from digitalmediabremen/hej
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 872 Bytes
/
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
name: deploy to hej.digital
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache node_modules/
uses: actions/cache@v1
id: cache_node_modules
with:
path: node_modules
key: node_modules-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: node_modules-
- name: Install Dependencies
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: npm install
- run: npm run build
env:
CI: ""
- run: mv ./build/index.html ./build/200.html
- run: npm install -g surge
- run: surge ./build ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}