-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.56 KB
/
DeployFacebook.yml
File metadata and controls
59 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Deploy via FTP
on:
push:
branches:
- master
paths:
- "facebook/**"
workflow_dispatch:
jobs:
deploy:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install rely
run: |
pip install pyinstaller
pip install PyQt5
pip install pyodbc
pip install pyperclip
pip install pythonnet
pip install playwright
pip install qasync
pip install aiohttp
pip install requests
pip install setuptools
# 读取并执行打包命令
- name: Build project
run: |
$command = Get-Content -Path "facebook\packaging_script\packaging.text"
Invoke-Expression $command
- name: Create release folder and zip executable
run: |
New-Item -ItemType Directory -Force -Path release\
# 将 FBrereptilever.exe 压缩为 ZIP 文件
Compress-Archive -Path "dist\FBreptilever.exe" -DestinationPath "release\FBreptilever.zip"
- name: Upload to server via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp
port: ${{ secrets.FTP_PORT }}
local-dir: release/
server-dir: /UpData/FBfans/
timeout: 3600000