documentation/.github/workflows/build.yml

31 lines
798 B
YAML
Raw Permalink Normal View History

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@v4
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@v3
2021-02-06 17:15:08 +00:00
with:
extended: true
- run: hugo --minify
2023-12-13 22:30:32 +00:00
- uses: aquiladev/ipfs-action@v0.3.1-alpha.3
2021-02-06 17:15:08 +00:00
id: ipfs-add
with:
path: ./public
service: infura
2022-10-02 14:02:30 +00:00
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
2021-02-06 17:15:08 +00:00
- name: Update DNSLink
2022-11-09 18:45:40 +00:00
run: npx dnslink-cloudflare -d piped.video -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.docs
2021-02-06 17:15:08 +00:00
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}