-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (41 loc) · 1.09 KB
/
BuildAndDeploy.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
name: Build and Deploy
on:
push:
branches:
- main
repository_dispatch:
types: [build-and-deploy]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
# Landing Page repo
- name: Checkout landing page
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install landing page deps
run: yarn install
- name: Build landing page deps
run: yarn build
# Docs repo
- name: Checkout docs build in publication branch
uses: actions/checkout@v2
with:
repository: devfile/docs
ref: publication
persist-credentials: false
path: out/docs
# Deploy built landing page and docs site
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
BRANCH: master
FOLDER: out
REPOSITORY_NAME: devfile/devfile.github.io
CLEAN: true