Skip to content

CI: update deploy CI version #16

CI: update deploy CI version

CI: update deploy CI version #16

Workflow file for this run

name: ci
on:
push:
branches:
- main
- master
# pull_request:
# branches:
# - main
# - master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Cache node_modules 📦
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies 👨🏻‍💻
run: npm ci
- name: Run tests 🧪
run: npm run test
- name: Generate static files 🔨
run: npm run build
- name: Deploy to netcup
uses: SamKirkland/FTP-Deploy-Action@4
with:
server: sharewifi.cool
username: ${{ secrets.FTP_DEPLOY_FTP_USER }}
password: ${{ secrets.FTP_DEPLOY_FTP_PASSWORD }}
protocol: ftps
local-dir: ./dist/