v1.6 备份系统 #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HikariServerLauncher Build(Windows) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: PyInstaller Action | |
uses: Martin005/[email protected] | |
with: | |
spec: main.py | |
requirements: requirements.txt | |
options: -F -i HSL.ico | |
python_ver: 3.12.4 | |
python_arch: x64 | |
upload_exe_with_name: HikariServerLauncher-${{ vars.VERSION }}.exe | |
- name: EXE Upload to website | |
if: success() | |
uses: wearesection/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
port: ${{ secrets.PORT }} | |
username: root | |
password: ${{ secrets.PASSWORD }} | |
localPath: .\dist\main.exe | |
remotePath: ${{ secrets.REMOTEPATH }} |