Skip to content

Commit f12cc40

Browse files
authored
fix: improve GitHub Actions workflow with debugging and testing (#4)
* fix: improve GitHub Actions workflow with debugging and testing
1 parent 8c14d0c commit f12cc40

File tree

71 files changed

+17
-94312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+17
-94312
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
13+
environment: deploy
14+
1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@v4
@@ -27,14 +28,26 @@ jobs:
2728
- name: Build static export
2829
run: npm run build # This will run next build which generates the 'out' directory
2930

30-
- name: Deploy to FTP
31+
- name: Verify build output
32+
run: |
33+
echo "Checking if build succeeded..."
34+
ls -la out/
35+
echo "Build output files:"
36+
find out/ -type f | head -10
37+
38+
- name: Deploy to FTP (Production)
3139
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
3240
uses: SamKirkland/FTP-Deploy-Action@4.3.0
3341
with:
3442
server: ${{ secrets.FTP_HOST }}
3543
username: ${{ secrets.FTP_USERNAME }}
3644
password: ${{ secrets.FTP_PASSWORD }}
3745
local-dir: ./out/
38-
# Update this to your target directory on the FTP server
39-
server-dir: /www # Change this to your desired directory path on the server
46+
server-dir: ./
47+
exclude: |
48+
**/.git*
49+
**/.git*/**
50+
**/node_modules/**
51+
**/.DS_Store
52+
dry-run: false
4053

old/.htaccess

Lines changed: 0 additions & 10 deletions
This file was deleted.

old/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

old/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)