mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-23 01:44:26 +08:00
ci: pin pdcc client version separately from app version
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -722,7 +722,7 @@ jobs:
|
|||||||
PRIMARY_VERSION: ${{ needs.prepare.outputs.version }}
|
PRIMARY_VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
PDCC_primaryVersion: ${{ needs.prepare.outputs.version }}
|
PDCC_primaryVersion: ${{ needs.prepare.outputs.version }}
|
||||||
PDCC_version: ${{ needs.prepare.outputs.version }}
|
PDCC_version: ${{ needs.prepare.outputs.version }}
|
||||||
PDC_CLIENT_VERSION: ${{ vars.PDC_CLIENT_VERSION }}
|
PDC_CLIENT_VERSION: ${{ vars.PDC_CLIENT_VERSION || '1.0.1.0' }}
|
||||||
S3_ENDPOINT: ${{ vars.S3_ENDPOINT }}
|
S3_ENDPOINT: ${{ vars.S3_ENDPOINT }}
|
||||||
S3_BUCKET: ${{ vars.S3_BUCKET }}
|
S3_BUCKET: ${{ vars.S3_BUCKET }}
|
||||||
S3_REGION: ${{ vars.S3_REGION }}
|
S3_REGION: ${{ vars.S3_REGION }}
|
||||||
@@ -941,7 +941,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
./scripts/Install-Pdcc.ps1 -Repository "ClassIsland/PhainonDistributionCenter" -OutputDir "./pdcc"
|
./scripts/Install-Pdcc.ps1 -Repository "ClassIsland/PhainonDistributionCenter" -Version "$env:PDC_CLIENT_VERSION" -OutputDir "./pdcc"
|
||||||
|
|
||||||
- name: Publish with PDCC
|
- name: Publish with PDCC
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ if ([string]::IsNullOrWhiteSpace($releaseTag)) {
|
|||||||
$releaseTag = $env:PDCC_VERSION
|
$releaseTag = $env:PDCC_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([string]::IsNullOrWhiteSpace($releaseTag)) {
|
|
||||||
$releaseTag = $env:PDCC_version
|
|
||||||
}
|
|
||||||
|
|
||||||
$tempDir = Join-Path $env:RUNNER_TEMP "pdcc-install"
|
$tempDir = Join-Path $env:RUNNER_TEMP "pdcc-install"
|
||||||
if (Test-Path -LiteralPath $tempDir) {
|
if (Test-Path -LiteralPath $tempDir) {
|
||||||
Remove-Item -LiteralPath $tempDir -Recurse -Force
|
Remove-Item -LiteralPath $tempDir -Recurse -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user