Add scripts for building and managing RustDesk versions
Some checks failed
rustdesk-auto-build / build-and-publish (push) Has been cancelled
Some checks failed
rustdesk-auto-build / build-and-publish (push) Has been cancelled
- Implement Build-CustomRustDesk.ps1 to build RustDesk with specified version and configuration. - Create Get-LastBuiltVersion.ps1 to retrieve the last built version from a state file. - Add Get-LatestRustDeskVersion.ps1 to fetch the latest version from GitHub releases. - Develop Invoke-RustDeskPipeline.ps1 to orchestrate the build and deployment process. - Introduce Publish-Artifacts.ps1 for publishing build artifacts via SMB or SCP. - Implement Set-LastBuiltVersion.ps1 to update the state file with the last built version.
This commit is contained in:
28
.gitea/workflows/rustdesk-auto-build.yml
Normal file
28
.gitea/workflows/rustdesk-auto-build.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: rustdesk-auto-build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "17 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- windows
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run RustDesk automation
|
||||
shell: pwsh
|
||||
env:
|
||||
STATE_FILE_PATH: ${{ vars.STATE_FILE_PATH }}
|
||||
CONFIG_PATH: ${{ vars.CONFIG_PATH }}
|
||||
BUILD_OUTPUT_DIR: ${{ vars.BUILD_OUTPUT_DIR }}
|
||||
BUILDER_COMMAND: ${{ secrets.BUILDER_COMMAND }}
|
||||
DEPLOY_MODE: ${{ vars.DEPLOY_MODE }}
|
||||
DESTINATION_PATH: ${{ vars.DESTINATION_PATH }}
|
||||
SCP_DESTINATION: ${{ vars.SCP_DESTINATION }}
|
||||
run: |
|
||||
./scripts/Invoke-RustDeskPipeline.ps1
|
||||
Reference in New Issue
Block a user