GitHub Pages #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |