Skip to content

Commit 777c1d3

Browse files
committed
ci: add ipfs cluster deployment with conditional retention
- add cluster deployment to ipfs-websites.collab.ipfscluster.io - set cluster-pin-expire-in to 90d only for non-main branches (PRs) - main branch deployments have no expiration - increase github artifact retention from 1d to 90d - comment out storacha credentials (to be configured separately)
1 parent 6b4b356 commit 777c1d3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
with:
5555
name: docs-build-${{ github.run_id }}
5656
path: ${{ env.BUILD_PATH }}
57-
retention-days: 1
57+
retention-days: 90

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ jobs:
4747
id: deploy
4848
with:
4949
path-to-deploy: ${{ env.BUILD_PATH }}
50-
storacha-key: ${{ secrets.STORACHA_KEY }}
51-
storacha-proof: ${{ secrets.STORACHA_PROOF }}
50+
cluster-url: "/dnsaddr/ipfs-websites.collab.ipfscluster.io"
51+
cluster-user: ${{ secrets.CLUSTER_USER }}
52+
cluster-password: ${{ secrets.CLUSTER_PASSWORD }}
53+
cluster-pin-expire-in: ${{ github.event.workflow_run.head_branch != 'main' && '90d' || '' }}
54+
#storacha-key: ${{ secrets.STORACHA_KEY }}
55+
#storacha-proof: ${{ secrets.STORACHA_PROOF }}
5256
github-token: ${{ github.token }}
5357

5458
deploy-gh-pages:
@@ -78,4 +82,4 @@ jobs:
7882

7983
- name: Deploy to GitHub Pages
8084
id: deployment
81-
uses: actions/deploy-pages@v4
85+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)