Skip to content

Commit dd6e9d2

Browse files
committed
ci: add deploy and lint GitHub Actions workflows
1 parent 50abac5 commit dd6e9d2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy CodeFestival Web
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Execute rebuild script
13+
uses: appleboy/ssh-action@3ca8a7c5359ac6ad91aa47f1946ece1c3b025004
14+
with:
15+
host: ${{ secrets.SERVER_IP }}
16+
port: ${{ secrets.SERVER_PORT }}
17+
username: ${{ secrets.SERVER_USERNAME }}
18+
key: ${{ secrets.SSH_PRIVATE_KEY }}
19+
script: /usr/local/bin/deploy/pnpm.sh

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Code Style Validation
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v5
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: 24
21+
22+
- name: Install pnpm
23+
run: npm install -g pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Run ESLint
29+
run: pnpm run lint

0 commit comments

Comments
 (0)