Skip to content

cyclistsofmsn-backend: v2.0.3 #13

cyclistsofmsn-backend: v2.0.3

cyclistsofmsn-backend: v2.0.3 #13

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# Then, if tests pass, it runs a remote setup script on the configured server over SSH
name: Deploy to server
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Install exiftool
run: sudo apt-get install -y exiftool
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run test --maxWorkers=50%
- run: npm run lint
- name: Deploy on Server
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: ${{ secrets.DEPLOY_SCRIPT }}