fix(site): add CNAME file #16
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: Site | |
on: | |
push: | |
workflow_dispatch: | |
# TODO: run only for changes in `site` directory | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/prepare-build | |
- name: Build site | |
working-directory: "./site" | |
run: | | |
npm install | |
npm run build | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: Cecilapp/GitHub-Pages-deploy@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
email: [email protected] | |
build_dir: "./site/build" | |
branch: gh-pages |