v0.1.38 #42
Workflow file for this run
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
name: Node.js CI | |
on: | |
release: | |
types: [published] | |
jobs: | |
depoly: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- 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 }} |