-
Notifications
You must be signed in to change notification settings - Fork 147
34 lines (32 loc) · 986 Bytes
/
test-and-deploy.yml
File metadata and controls
34 lines (32 loc) · 986 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
name: Oppgaver
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '10'
- name: Clone codeclub-viewer
run: git clone --depth=1 --branch=master https://github.com/kodeklubben/codeclub-viewer.git ../codeclub-viewer
- name: Install Dependencies
run: |
cd ../codeclub-viewer
yarn install
- name: Build
run: |
cd ../codeclub-viewer
yarn build:travis
- name: Deploy
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.NORWEGIANMANGO }}
publish_branch: master
publish_dir: ../codeclub-viewer/dist
cname: oppgaver.kidsakoder.no
external_repository: kodeklubben/kodeklubben.github.io