mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: Beta Deployment
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the main branch
|
|
push:
|
|
branches: [master]
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
build:
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-latest
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js 16.x
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: 16.x
|
|
- run: npm ci
|
|
- run: npm run build
|
|
|
|
- uses: easingthemes/ssh-deploy@main
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.REMOTE_KEY }}
|
|
ARGS: "-aPzz"
|
|
SOURCE: "./build/*"
|
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
|
TARGET: ${{ secrets.REMOTE_PATH }}
|
|
EXCLUDE: "*.map, *.txt"
|