1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30
Piped/.github/workflows/ipfs-build.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2021-12-29 01:09:02 +05:30
name: Build and Deploy
on:
2023-05-05 06:49:54 +05:30
push:
paths-ignore:
- "**.md"
branches:
- master
2021-12-29 01:09:02 +05:30
jobs:
2023-05-05 06:49:54 +05:30
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm build && ./localizefonts.sh && cp dist/index.html dist/ipfs-404.html
- uses: aquiladev/ipfs-action@v0.3.1-alpha.2
id: ipfs-add
with:
path: ./dist
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
- name: Update DNSLink
run: npx dnslink-cloudflare -d kavin.rocks -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.piped-ipfs
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}