Skip to content

Commit 2ccc439

Browse files
ci: migrate to swarm actions for previews (#137)
1 parent d6ea3eb commit 2ccc439

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/check.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,18 @@ jobs:
6464
npx link-checker --url-ignore localhost --allow-hash-href --mkdocs --http-cache /tmp/link-checker --http-always-get --http-timeout 10000 --http-redirects 5 ./build
6565
6666
- name: Create preview
67-
uses: ethersphere/beeload-action@v1
68-
continue-on-error: true
67+
uses: ethersphere/swarm-actions/pr-preview@v0
6968
with:
7069
bee-url: https://unlimited.gateway.ethswarm.org
71-
preview: 'true'
7270
token: ${{ secrets.REPO_GHA_PAT }}
73-
extra-params: '-H "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"'
71+
error-document: index.html
72+
headers: "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"
7473

7574
- name: Upload to testnet
76-
uses: ethersphere/beeload-action@v1
75+
uses: ethersphere/swarm-actions/upload-dir@v0
76+
continue-on-error: true
7777
with:
78+
index-document: index.html
79+
error-document: index.html
80+
dir: ./build
7881
bee-url: https://api.gateway.testnet.ethswarm.org

0 commit comments

Comments
 (0)