Skip to content

Instantly share code, notes, and snippets.

@ronihcohen
Last active July 22, 2020 11:53
Show Gist options
  • Save ronihcohen/1dc3a7df3af374f8872951830bb4e057 to your computer and use it in GitHub Desktop.
Save ronihcohen/1dc3a7df3af374f8872951830bb4e057 to your computer and use it in GitHub Desktop.
name: github pages
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run crawl
- run: npm run format
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: israel-coffee.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment