Skip to content

GitHub Pages

GitHub Pages #153

Workflow file for this run

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.