Skip to content

fix: troubleshoot inability to find build output #7

fix: troubleshoot inability to find build output

fix: troubleshoot inability to find build output #7

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Display current working directory
run: |
pwd
- name: Display contents of parent directory
run: |
cd ..
ls -R
- name: Deploy to FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /dist/
server-dir: /wwwroot/
dry-run: true