Skip to content

Commit

Permalink
Create test-ipfs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Apr 8, 2024
1 parent 9626aab commit c14aff8
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test-ipfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build IPFS Website

on:
workflow_dispatch:

permissions:
contents: read
statuses: write

jobs:
build:
runs-on: ubuntu-latest

environment:
name: dweb
url: https://cloudflare-ipfs.com/ipns/ipfs.privacyguides.org/en/index.html

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: "false"

- name: Python setup
uses: actions/setup-python@v5

- name: Install Python dependencies
run: |
pip install mkdocs-material
sudo apt install pngquant
- name: Build website
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARDS: false
run: |
mkdocs build --config-file config/mkdocs-offline.yml
mkdocs --version
- id: cluster_deploy
uses: ipfs-shipyard/[email protected]
with:
path_to_add: site
cluster_host: /dns/cluster.ipfs.jonaharagon.net/tcp/443/tls/sni/cluster.ipfs.jonaharagon.net
cluster_user: ${{ secrets.CLUSTER_USERNAME }}
cluster_password: ${{ secrets.CLUSTER_PASSWORD }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: textileio/cloudflare-update-dnslink@30414a408191218c8259e932ebdf4cbb7c652fe8
with:
cid: ${{ steps.cluster_deploy.outputs.cid }}
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE }}
RECORD_DOMAIN: privacyguides.org
RECORD_NAME: _dnslink.ipfs

0 comments on commit c14aff8

Please sign in to comment.