Skip to content

Fixed misformatted API url #6

Fixed misformatted API url

Fixed misformatted API url #6

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build and deploy to FTP
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: release-artifact
path: './dist'
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
# Download the artifact we just created
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: release-artifact
path: './dist' # This is the path where the artifact will be downloaded to
- name: Sync files to FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.ftpserver }}
username: ${{ secrets.ftpuser }}
password: ${{ secrets.ftppassword }}
local-dir: './dist/'
server-dir: '/'