Skip to content

upgrade deps (2)

upgrade deps (2) #62

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Node version
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: '18.x'
# Install Node modules
- run: npm ci
# Run unit tests
- run: npm test
env:
CI: true
# Run build
- run: npm run build
# List artifact files
- name: List output files
run: ls dist -ltr
# Upload files to server
- name: FTP Deploy
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_url }}
username: [email protected]
password: ${{ secrets.ftp_password }}
local-dir: dist/