Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest

environment: deploy

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -27,14 +28,26 @@ jobs:
- name: Build static export
run: npm run build # This will run next build which generates the 'out' directory

- name: Deploy to FTP
- name: Verify build output
run: |
echo "Checking if build succeeded..."
ls -la out/
echo "Build output files:"
find out/ -type f | head -10

- name: Deploy to FTP (Production)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: SamKirkland/FTP-Deploy-Action@4.3.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./out/
# Update this to your target directory on the FTP server
server-dir: /www # Change this to your desired directory path on the server
server-dir: ./
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/.DS_Store
dry-run: false

10 changes: 0 additions & 10 deletions old/.htaccess

This file was deleted.

21 changes: 0 additions & 21 deletions old/LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions old/README.md

This file was deleted.

Loading