Skip to content

Merge pull request #4 from addisonbeck/dependabot/npm_and_yarn/storyb… #17

Merge pull request #4 from addisonbeck/dependabot/npm_and_yarn/storyb…

Merge pull request #4 from addisonbeck/dependabot/npm_and_yarn/storyb… #17

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY_PRI }}
source: dist/*
target: ${{ secrets.DEPLOY_PATH }}
strip_components: 1
overwrite: true