mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: CI
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the main branch
|
|
push:
|
|
branches: [main]
|
|
|
|
# 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:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.x
|
|
|
|
- name: Use Node.js 15.x
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: 15.x
|
|
|
|
- shell: bash
|
|
run: chmod +x docs/scripts/build.sh && ./docs/scripts/build.sh
|
|
|
|
- uses: blbecker/rsync-deploy@v1.0
|
|
with:
|
|
source_dir: ./docs/public_html
|
|
destination_path: ${{ secrets.REMOTE_PATH }}
|
|
destination_host: ${{ secrets.REMOTE_HOST }}
|
|
deployment_user: ${{ secrets.REMOTE_USER }}
|
|
deployment_key: ${{ secrets.REMOTE_KEY }}
|