forked from limcheekin/eth-dapps-nextjs-boiletplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added deploy to skynet github action workflow
- Loading branch information
1 parent
05395b1
commit 255939d
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# REF: https://docs.siasky.net/developer-guides/deploy-github-actions | ||
name: Deploy to Skynet | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup NodeJS 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Show NodeJS version | ||
run: npm --version | ||
|
||
- name: Build and Export | ||
run: | | ||
cd client | ||
yarn | ||
yarn build | ||
yarn export | ||
- name: Deploy to Skynet | ||
uses: SkynetLabs/deploy-to-skynet-action@v2 | ||
with: | ||
upload-dir: client/out | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
registry-seed: ${{ secrets.SKYNET_REGISTRY_SEED || '' }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters