Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): added linux package onedrive upload #787

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
if ('${{ inputs.dry-run }}') {
$DryRun = "${{ inputs.dry-run }}"
}

if ([System.Convert]::ToBoolean($DryRun)) {
echo "::notice::This is a dry run; publishing will be skipped"
} else {
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Manage artifacts
shell: pwsh
run: Remove-Item (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore

- name: Prepare artifacts
id: prepare-artifacts
shell: pwsh
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
tar -xvzf $WebAppArchive.FullName -C $TargetPath --strip-components=1

$PowerShellArchive = Get-ChildItem -Recurse -Filter "Devolutionsgateway-ps-*.zip" | Select-Object -First 1
Expand-Archive $PowerShellArchive -DestinationPath "$PkgDir"
Expand-Archive $PowerShellArchive -DestinationPath "$PkgDir"

- name: Build container
id: build-container
Expand Down Expand Up @@ -334,6 +334,7 @@ jobs:

New-Item -Path "$destinationFolder" -ItemType "directory"
Move-Item -Path "./windows/x86_64/DevolutionsGateway-x86_64-${version}.msi" -Destination "$destinationFolder/DevolutionsGateway-x86_64-${version}.0.msi"
Move-Item -Path "./linux/x86_64/devolutions-gateway_${version}_amd64.deb" -Destination "$destinationFolder/devolutions-gateway_${version}.0_amd64.deb"

- name: Upload to OneDrive
uses: ./.github/workflows/onedrive-upload
Expand Down