Skip to content

Merge pull request #17 from Noesis/dependabot/npm_and_yarn/multi-a9f8… #107

Merge pull request #17 from Noesis/dependabot/npm_and_yarn/multi-a9f8…

Merge pull request #17 from Noesis/dependabot/npm_and_yarn/multi-a9f8… #107

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
build-ftp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies and build
uses: actions/setup-node@v1
- run: npm install
- run: npm run deploy --if-present
env:
FTP_HOST: ${{ secrets.ftp_host }}
FTP_REMOTE: ${{ secrets.ftp_remote }}
FTP_USER: ${{ secrets.ftp_user }}
FTP_PASSWORD: ${{ secrets.ftp_passwd }}