Merge pull request #9 from Lumaeris/main #36
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
extended: true | |
- run: hugo --minify | |
- uses: aquiladev/[email protected] | |
id: ipfs-add | |
with: | |
path: ./public | |
service: infura | |
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }} | |
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }} | |
- name: Update DNSLink | |
run: npx dnslink-cloudflare -d piped.video -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.docs | |
env: | |
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} |