xkcd/.github/workflows/deploy.yml
Henrique Dias 6a7af22ae8
chore: add cache
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2020-10-04 21:15:49 +02:00

30 lines
775 B
YAML

name: 'Deploy /ipns/xkcd.hacdias.com'
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- name: Cache node modules
uses: actions/cache@v2
with:
path: output
key: xkcd-clone-1.2.1
- run: npx xkcd-clone -d output
- run: npx ipfs-deploy output -C -O -u pinata -p ipfs-cluster -d cloudflare
env:
IPFS_DEPLOY_CLOUDFLARE__ZONE: hacdias.com
IPFS_DEPLOY_CLOUDFLARE__RECORD: _dnslink.xkcd.hacdias.com