2021-02-06 17:15:08 +00:00
|
|
|
name: Build and Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-02-06 18:04:45 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2021-02-06 17:15:08 +00:00
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
extended: true
|
|
|
|
- run: hugo --minify
|
|
|
|
- uses: aquiladev/ipfs-action@v0.1.5
|
|
|
|
id: ipfs-add
|
|
|
|
with:
|
|
|
|
path: ./public
|
|
|
|
service: infura
|
|
|
|
- name: Update DNSLink
|
|
|
|
run: npx dnslink-cloudflare -d kavin.rocks -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.piped-docs
|
|
|
|
env:
|
|
|
|
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
|