ci: preview pr on swarm (#225)
* ci: add preview in bee action * chore: set Bee API and Bee Debug API
This commit is contained in:
@@ -16,6 +16,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
node-version: [14.x]
|
node-version: [14.x]
|
||||||
|
|
||||||
|
env:
|
||||||
|
REACT_APP_BEE_HOST: https://bee.simetka.cz
|
||||||
|
REACT_APP_BEE_DEBUG_HOST: https://debug.bee.simetka.cz
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -50,11 +54,16 @@ jobs:
|
|||||||
- name: Dependency check
|
- name: Dependency check
|
||||||
run: npm run depcheck
|
run: npm run depcheck
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Update supported Bee action
|
- name: Update supported Bee action
|
||||||
uses: ethersphere/update-supported-bee-action@v1
|
uses: ethersphere/update-supported-bee-action@v1
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.REPO_GHA_PAT }}
|
token: ${{ secrets.REPO_GHA_PAT }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Create preview
|
||||||
|
uses: ethersphere/beeload-action@v1
|
||||||
|
with:
|
||||||
|
preview: 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user