-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 910 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
37
38
name: GitHub Pages
on:
push:
branches:
- main
pull_request:
schedule:
# run every Sunday at 22:12 UTC
- cron: '12 22 * * 0'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: mozilla/gecko-dev
path: gecko-dev
- run: npm install -g mustache
- name: Build
run: |
mkdir build
dev/build-data ./gecko-dev > build/data.json
cat build/data.json
mustache build/data.json index.mustache > build/index.html
cat build/index.html
- name: Deploy
uses: JamesIves/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.