Skip to content

Deploy to Test

Deploy to Test #6

name: Deploy to Test
concurrency: test
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: Test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Install
run: npm i ci
- name: Build
run: npm run build:prod:test
- name: FTP Upload
uses: SamKirkland/[email protected]
with:
server: ${{ vars.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ${{ vars.FTP_PROTOCOL }}
local-dir: ${{ vars.FTP_LOCAL_DIR }}
server-dir: ${{ vars.FTP_SERVER_DIR }}