forked from microsoft/TypeScript-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.08 KB
/
Copy pathDeploy.yml
File metadata and controls
46 lines (39 loc) · 1.08 KB
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 Website For Production
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out, and set up the node/ruby infra
- uses: actions/checkout@v1
with:
submodules: "true"
- uses: actions/setup-node@v1
- uses: actions/setup-ruby@v1
# Get local dependencies
- run: yarn install
# danger for PR builds
- if: github.event_name == 'pull_request'
run: yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: (cd src/play && yarn install && yarn setup)
- run: gem install bundler -v 1.16.1
- run: bundle install
# Build v1
- name: Build website v1
run: gulp publish
# Switch to node 13
- uses: actions/setup-node@v1
with:
node-version: '13.x'
# CI: Deploy to the right branch
- name: Deploy + Publish
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: 'SITE-PRODUCTION'
PUBLISH_DIR: ./site