Skip to content

Merge pull request #56 from zCloak-Network/shenzhen-event #125

Merge pull request #56 from zCloak-Network/shenzhen-event

Merge pull request #56 from zCloak-Network/shenzhen-event #125

Workflow file for this run

name: Deploy test
on:
push:
branches:
- master
- dev
workflow_dispatch:
jobs:
deploy-test:
runs-on: ubuntu-latest
environment: dev
env:
YARN_ENABLE_SCRIPTS: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Install deps and build
run: |
yarn install --immutable | grep -v 'YN0013'
yarn build
- name: Deploy to test environment
uses: appleboy/scp-action@master
with:
username: ubuntu
host: ${{ secrets.HOST }}
port: 22
key: ${{ secrets.KEY }}
source: ${{ github.workspace }}/packages/app/build
target: "/home/ubuntu/cred"
strip_components: 5
rm: true