Skip to content

Commit

Permalink
feat: added deploy to skynet github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Oct 13, 2021
1 parent 05395b1 commit 255939d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/skynet.yml
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 || '' }}


5 changes: 3 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "greeter",
"name": "eth-dapps-nextjs-boiletplate",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"export": "next export"
},
"dependencies": {
"@chakra-ui/icons": "^1.0.15",
Expand Down

0 comments on commit 255939d

Please sign in to comment.