ci: migrate to swarm-actions for PR previews (#310)

This commit is contained in:
Vojtech Simetka
2022-04-14 15:31:09 +05:00
committed by GitHub
parent 0a31a04148
commit 8f51aa9e89
+7 -4
View File
@@ -74,15 +74,18 @@ jobs:
run: npm run build:component
- name: Create preview
uses: ethersphere/beeload-action@v1
uses: ethersphere/swarm-actions/pr-preview@v0
with:
bee-url: https://unlimited.gateway.ethswarm.org
preview: 'true'
token: ${{ secrets.GHA_PAT_BASIC }}
extra-params: '-H "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"'
error-document: index.html
headers: "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"
- name: Upload to testnet
uses: ethersphere/swarm-actions/upload-dir@v0
continue-on-error: true
uses: ethersphere/beeload-action@v1
with:
index-document: index.html
error-document: index.html
dir: ./build
bee-url: https://api.gateway.testnet.ethswarm.org