Skip to content

v0.1.56

v0.1.56 #60

Workflow file for this run

name: Node.js CI
on:
release:
types: [published]
jobs:
depoly:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Set yarn version
run: |
corepack enable
yarn set version stable
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: build/
remote_path: /data/wwwroot/docs.warudo.app/
remote_host: ${{ secrets.DEPLOY_SSH_HOST }}
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
remote_user: ${{ secrets.DEPLOY_SSH_USERNAME }}
remote_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
# - name: Upload production-ready build files
# run: yarn deploy:server
# env: # Or as an environment variable
# DEPLOY_SSH_PORT: ${{ secrets.DEPLOY_SSH_PORT }}
# DEPLOY_SSH_USERNAME: ${{ secrets.DEPLOY_SSH_USERNAME }}
# DEPLOY_SSH_PASSWORD: ${{ secrets.DEPLOY_SSH_PASSWORD }}
# DEPLOY_SSH_HOST: ${{ secrets.DEPLOY_SSH_HOST }}