From 490a3c2dd274593767ca5b5c63de6e5c736448fb Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 17:27:24 +0100 Subject: [PATCH 01/40] set distributionManagement repos to local --- pom.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8240cbb0a60..34254c4dd14 100644 --- a/pom.xml +++ b/pom.xml @@ -869,12 +869,14 @@ maven.cyberduck.io-release - s3://repo.maven.cyberduck.io/releases/ + + file://${user.home} default maven.cyberduck.io-snapshot - s3://repo.maven.cyberduck.io/snapshots/ + file://${user.home} github-pages-site From 7c6015a7e6c02d28ac68622aa2eebbe62b7474d2 Mon Sep 17 00:00:00 2001 From: RaveenaRamany <61196071+RaveenaRamany@users.noreply.github.com> Date: Sun, 10 Dec 2023 18:24:35 +0100 Subject: [PATCH 02/40] Add workflow cyberduck-release-windows --- .../workflows/cyberduck-release-windows.yml | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 .github/workflows/cyberduck-release-windows.yml diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml new file mode 100644 index 00000000000..47308c1c3f7 --- /dev/null +++ b/.github/workflows/cyberduck-release-windows.yml @@ -0,0 +1,139 @@ +name: cyberduck-release-windows +on: + workflow_dispatch: + inputs: + GIT_TAG: + required: false +env: + AWS_ACCESS_KEY_DEPLOYMENT: "${{ secrets.52D57BB0_E2E1_46D3_A431_13B5E39E1334_AWS_ACCESS_KEY_DEPLOYMENT }}" + AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets.52D57BB0_E2E1_46D3_A431_13B5E39E1334_AWS_SECRET_KEY_DEPLOYMENT }}" + RACKSPACE_USER: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_USER }}" + RACKSPACE_PASSWORD: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_PASSWORD }}" +# # This item has no matching transformer +# org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper: +# plugin: config-file-provider@3.11.1 +# managedFiles: +# - org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile: +# fileId: 05db0dbd-e0f0-4eb5-881b-524c43e54802 +# targetLocation: "$WORKSPACE/www/update/private.pem" +# replaceTokens: 'false' +# # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable +# fileId: 5d9d075e-ca4f-4679-ac9b-0846bc8f53f4 +# targetLocation: "$WORKSPACE/settings.xml" +jobs: + build: + runs-on: + - self-hosted + - windows + steps: + - name: clean workspace + shell: ruby {0} + run: |- + require "fileutils" + Dir.chdir(ENV["GITHUB_WORKSPACE"]) do + paths = Dir.glob(["**/*"]) + paths -= Dir.glob([".git/**", ".repository/**"]) + paths.each do |path| + File.delete(path) if File.file?(path) + FileUtils.rm_rf(path) if File.directory?(path) + end + end + - name: checkout + uses: actions/checkout@v4.1.0 + - name: Set up JDK 1.11 + uses: actions/setup-java@v4.0.0 + with: + distribution: zulu + java-version: '1.11' + settings-path: "${{ github.workspace }}" + - name: Run maven + run: mvn clean deploy --settings $WORKSPACE/settings.xml -DskipTests -D"sparkle.feed=" + - name: run batch command + shell: cmd + run: FOR %%c in ("%WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload rackspace:/cdn.cyberduck.ch/ "%%c" --username %RACKSPACE_USER% --password %RACKSPACE_PASSWORD% --retry --quiet --existing overwrite --region DFW + - name: run batch command + shell: cmd + run: FOR %%c in ("%WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload s3:/release.cyberduck.io/ "%%c" --username %AWS_ACCESS_KEY_DEPLOYMENT% --password %AWS_SECRET_KEY_DEPLOYMENT% --retry --quiet --existing overwrite --region us-east-1 + - name: Upload Artifacts + uses: actions/upload-artifact@v3.1.3 + if: always() + with: + path: |- + windows\target\release\*.exe + windows\target\release\*.msi + windows\target\release\*.appx + !**/*~ + !**/#*# + !**/.#* + !**/%*% + !**/._* + !**/CVS + !**/CVS/** + !**/.cvsignore + !**/SCCS + !**/SCCS/** + !**/vssver.scc + !**/.svn + !**/.svn/** + !**/.DS_Store + !**/.git + !**/.git/** + !**/.gitattributes + !**/.gitignore + !**/.gitmodules + !**/.hg + !**/.hg/** + !**/.hgignore + !**/.hgsub + !**/.hgsubstate + !**/.hgtags + !**/.bzr + !**/.bzr/** + !**/.bzrignore +# # Fingerprinter was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable +# # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients + # Ensure parameter if_key_exists is set correctly + - name: Install SSH key + uses: shimataro/ssh-key-action@v2.6.1 + with: + key: "${{ secrets.VERSION_CYBERDUCK_IO_SSH_KEY }}" + name: id_rsa-version_cyberduck_io + known_hosts: "${{ secrets.VERSION_CYBERDUCK_IO_KNOWN_HOSTS }}" + if_key_exists: fail + config: | + Host VERSION_CYBERDUCK_IO + HostName ${{ secrets.VERSION_CYBERDUCK_IO_HOST_NAME }} + User ${{ secrets.VERSION_CYBERDUCK_IO_USER }} + IdentityFile ~/.ssh/id_rsa-version_cyberduck_io + if: always() + - name: setup file transfer file + uses: actions/github-script@v7.0.0 + with: + script: |- + const fs = require('fs').promises + const path = require('path') + const patterns = "windows/target/update/changelog.*,!**/*~,!**/#*#,!**/.#*,!**/%*%,!**/._*,!**/CVS,!**/CVS/**,!**/.cvsignore,!**/SCCS,!**/SCCS/**,!**/vssver.scc,!**/.svn,!**/.svn/**,!**/.DS_Store,!**/.git,!**/.git/**,!**/.gitattributes,!**/.gitignore,!**/.gitmodules,!**/.hg,!**/.hg/**,!**/.hgignore,!**/.hgsub,!**/.hgsubstate,!**/.hgtags,!**/.bzr,!**/.bzr/**,!**/.bzrignore" + const globber = await glob.create(patterns.replace(/,/g, "\n")) + const files = [] + for await (const file of globber.globGenerator()) { + if ((await fs.lstat(file)).isDirectory()) continue + files.push(path.relative(process.cwd(), file)) + } + fs.writeFile("version_cyberduck_io-transfer.txt", files.join("\n"), (err) => {}) + if: always() + - name: run file transfers + run: |- + ssh VERSION_CYBERDUCK_IO 'mkdir -p windows' + tar -cvf version_cyberduck_io-transfer.tar --files-from version_cyberduck_io-transfer.txt + scp version_cyberduck_io-transfer.tar VERSION_CYBERDUCK_IO: + ssh VERSION_CYBERDUCK_IO 'tar -xvf version_cyberduck_io-transfer.tar -C windows && rm version_cyberduck_io-transfer.tar' + if: always() +# # This item has no matching transformer +# - uses: hudson.tasks.BuildTrigger +# with: +# childProjects: cyberduck-release-windows-chocolatey +# threshold: +# name: SUCCESS +# ordinal: '0' +# color: BLUE +# completeBuild: 'true' From 87952978cea7e919985062dffa89ae293334ec7e Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 18:59:10 +0100 Subject: [PATCH 03/40] Fix missing transforms --- .../workflows/cyberduck-release-windows.yml | 56 +++++++++++++------ 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index 47308c1c3f7..b8690b44314 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -9,17 +9,7 @@ env: AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets.52D57BB0_E2E1_46D3_A431_13B5E39E1334_AWS_SECRET_KEY_DEPLOYMENT }}" RACKSPACE_USER: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_USER }}" RACKSPACE_PASSWORD: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_PASSWORD }}" -# # This item has no matching transformer -# org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper: -# plugin: config-file-provider@3.11.1 -# managedFiles: -# - org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile: -# fileId: 05db0dbd-e0f0-4eb5-881b-524c43e54802 -# targetLocation: "$WORKSPACE/www/update/private.pem" -# replaceTokens: 'false' -# # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable -# fileId: 5d9d075e-ca4f-4679-ac9b-0846bc8f53f4 -# targetLocation: "$WORKSPACE/settings.xml" + jobs: build: runs-on: @@ -40,20 +30,50 @@ jobs: end - name: checkout uses: actions/checkout@v4.1.0 - - name: Set up JDK 1.11 + - name: Copy Sparkle Updater Private Key (DSA) + shell: powershell + env: + SPARKLE_UPDATER_PK: ${{ secrets.win_sparkle_updater_private_key }} + run: ${env:SPARKLE_UPDATER_PK} > $GITHUB_WORKSPACE\www\update\private.pem + + - name: Set up JDK 17 uses: actions/setup-java@v4.0.0 with: - distribution: zulu - java-version: '1.11' + distribution: 'temurin' + java-version: '17' settings-path: "${{ github.workspace }}" + - name: Generate maven settings.xml + uses: s4u/maven-settings-action@v2.8.0 + with: + servers: | + [{ + "id": "maven.iterate.ch-release", + "username": "AKIAI44PZB4OH5YGWFVA", + "password": "${{ secrets.maven_server_password }}", + }, + { + "id": "maven.iterate.ch-snapshot", + "username": "AKIAI44PZB4OH5YGWFVA", + "password": "${{ secrets.maven_server_password }}", + }, + { + "id": "maven.cyberduck.io-release", + "username": "AKIAI44PZB4OH5YGWFVA", + "password": "${{ secrets.maven_server_password }}", + }, + { + "id": "maven.cyberduck.io-snapshot", + "username": "AKIAI44PZB4OH5YGWFVA", + "password": "${{ secrets.maven_server_password }}", + }] - name: Run maven - run: mvn clean deploy --settings $WORKSPACE/settings.xml -DskipTests -D"sparkle.feed=" + run: mvn clean deploy --settings $GITHUB_WORKSPACE/settings.xml -DskipTests -D"sparkle.feed=" - name: run batch command shell: cmd - run: FOR %%c in ("%WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload rackspace:/cdn.cyberduck.ch/ "%%c" --username %RACKSPACE_USER% --password %RACKSPACE_PASSWORD% --retry --quiet --existing overwrite --region DFW + run: FOR %%c in ("%GITHUB_WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload rackspace:/cdn.cyberduck.ch/ "%%c" --username %RACKSPACE_USER% --password %RACKSPACE_PASSWORD% --retry --quiet --existing overwrite --region DFW - name: run batch command shell: cmd - run: FOR %%c in ("%WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload s3:/release.cyberduck.io/ "%%c" --username %AWS_ACCESS_KEY_DEPLOYMENT% --password %AWS_SECRET_KEY_DEPLOYMENT% --retry --quiet --existing overwrite --region us-east-1 + run: FOR %%c in ("%GITHUB_WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload s3:/release.cyberduck.io/ "%%c" --username %AWS_ACCESS_KEY_DEPLOYMENT% --password %AWS_SECRET_KEY_DEPLOYMENT% --retry --quiet --existing overwrite --region us-east-1 - name: Upload Artifacts uses: actions/upload-artifact@v3.1.3 if: always() @@ -99,7 +119,7 @@ jobs: key: "${{ secrets.VERSION_CYBERDUCK_IO_SSH_KEY }}" name: id_rsa-version_cyberduck_io known_hosts: "${{ secrets.VERSION_CYBERDUCK_IO_KNOWN_HOSTS }}" - if_key_exists: fail + if_key_exists: replace # replace will allow us to update the ssh-key on an existing build config: | Host VERSION_CYBERDUCK_IO HostName ${{ secrets.VERSION_CYBERDUCK_IO_HOST_NAME }} From 5bdd6665827d4a51598866a45c67281cfabf5862 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 19:08:11 +0100 Subject: [PATCH 04/40] update Repository secrets --- .github/workflows/cyberduck-release-windows.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index b8690b44314..cf7fa0f13e4 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -33,7 +33,7 @@ jobs: - name: Copy Sparkle Updater Private Key (DSA) shell: powershell env: - SPARKLE_UPDATER_PK: ${{ secrets.win_sparkle_updater_private_key }} + SPARKLE_UPDATER_PK: ${{ secrets.WIN_SPARKLE_UPDATER_PRIVATE_KEY }} run: ${env:SPARKLE_UPDATER_PK} > $GITHUB_WORKSPACE\www\update\private.pem - name: Set up JDK 17 @@ -49,22 +49,22 @@ jobs: [{ "id": "maven.iterate.ch-release", "username": "AKIAI44PZB4OH5YGWFVA", - "password": "${{ secrets.maven_server_password }}", + "password": "${{ secrets.MAVEN_SERVER_PASSWORD }}", }, { "id": "maven.iterate.ch-snapshot", "username": "AKIAI44PZB4OH5YGWFVA", - "password": "${{ secrets.maven_server_password }}", + "password": "${{ secrets.MAVEN_SERVER_PASSWORD }}", }, { "id": "maven.cyberduck.io-release", "username": "AKIAI44PZB4OH5YGWFVA", - "password": "${{ secrets.maven_server_password }}", + "password": "${{ secrets.MAVEN_SERVER_PASSWORD }}", }, { "id": "maven.cyberduck.io-snapshot", "username": "AKIAI44PZB4OH5YGWFVA", - "password": "${{ secrets.maven_server_password }}", + "password": "${{ secrets.MAVEN_SERVER_PASSWORD }}", }] - name: Run maven run: mvn clean deploy --settings $GITHUB_WORKSPACE/settings.xml -DskipTests -D"sparkle.feed=" From 70e22c78f23e42af02bcf8660cac304764fbb68a Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 21:20:53 +0100 Subject: [PATCH 05/40] Fix secret names --- .github/workflows/cyberduck-release-windows.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index cf7fa0f13e4..0218988bcc1 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -5,10 +5,10 @@ on: GIT_TAG: required: false env: - AWS_ACCESS_KEY_DEPLOYMENT: "${{ secrets.52D57BB0_E2E1_46D3_A431_13B5E39E1334_AWS_ACCESS_KEY_DEPLOYMENT }}" - AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets.52D57BB0_E2E1_46D3_A431_13B5E39E1334_AWS_SECRET_KEY_DEPLOYMENT }}" - RACKSPACE_USER: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_USER }}" - RACKSPACE_PASSWORD: "${{ secrets.9FBE3DFE_89F3_4A37_BD20_42C301B6EB68_RACKSPACE_PASSWORD }}" + AWS_ACCESS_KEY_DEPLOYMENT: "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}" + AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets._AWS_SECRET_KEY_DEPLOYMENT }}" + RACKSPACE_USER: "${{ secrets.RACKSPACE_USER }}" + RACKSPACE_PASSWORD: "${{ secrets.RACKSPACE_PASSWORD }}" jobs: build: From b05f3eff959209cd01f6673e7576d2fdab3477e5 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 21:50:05 +0100 Subject: [PATCH 06/40] Change runner to github hosted windows runner --- .github/workflows/cyberduck-release-windows.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index 0218988bcc1..02761db7f86 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -13,8 +13,7 @@ env: jobs: build: runs-on: - - self-hosted - - windows + - windows-latest steps: - name: clean workspace shell: ruby {0} From c7ad0442eb2b40a9c1788f194998e7f692c77ea4 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 21:55:47 +0100 Subject: [PATCH 07/40] Fix typo in secret name --- .github/workflows/cyberduck-release-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index 02761db7f86..bd33589894e 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -6,7 +6,7 @@ on: required: false env: AWS_ACCESS_KEY_DEPLOYMENT: "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}" - AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets._AWS_SECRET_KEY_DEPLOYMENT }}" + AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" RACKSPACE_USER: "${{ secrets.RACKSPACE_USER }}" RACKSPACE_PASSWORD: "${{ secrets.RACKSPACE_PASSWORD }}" From f67f6ef1ffc344e34c25ea6fb872abd25c0db6fd Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 23:01:23 +0100 Subject: [PATCH 08/40] Add option for git tag --- .github/workflows/cyberduck-release-windows.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index bd33589894e..e2ddf9b3e36 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -29,6 +29,8 @@ jobs: end - name: checkout uses: actions/checkout@v4.1.0 + with: + ref: ${{ inputs.GIT_TAG }} - name: Copy Sparkle Updater Private Key (DSA) shell: powershell env: From 547c0b84d7b6e6195e0994936b8f3ef447300d8b Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 10 Dec 2023 23:47:36 +0100 Subject: [PATCH 09/40] Fix WORKSPACE variable --- .github/workflows/cyberduck-release-windows.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows.yml b/.github/workflows/cyberduck-release-windows.yml index bd33589894e..fa47ad63e43 100644 --- a/.github/workflows/cyberduck-release-windows.yml +++ b/.github/workflows/cyberduck-release-windows.yml @@ -5,6 +5,7 @@ on: GIT_TAG: required: false env: + GITHUB_REPOSITORY: "${{ github.workspace }}\\${{ github.event.repository.name }}" AWS_ACCESS_KEY_DEPLOYMENT: "${{ secrets.AWS_ACCESS_KEY_DEPLOYMENT }}" AWS_SECRET_KEY_DEPLOYMENT: "${{ secrets.AWS_SECRET_KEY_DEPLOYMENT }}" RACKSPACE_USER: "${{ secrets.RACKSPACE_USER }}" @@ -66,13 +67,13 @@ jobs: "password": "${{ secrets.MAVEN_SERVER_PASSWORD }}", }] - name: Run maven - run: mvn clean deploy --settings $GITHUB_WORKSPACE/settings.xml -DskipTests -D"sparkle.feed=" + run: mvn clean deploy --settings $GITHUB_REPOSITORY/settings.xml -DskipTests -D"sparkle.feed=" - name: run batch command shell: cmd - run: FOR %%c in ("%GITHUB_WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload rackspace:/cdn.cyberduck.ch/ "%%c" --username %RACKSPACE_USER% --password %RACKSPACE_PASSWORD% --retry --quiet --existing overwrite --region DFW + run: FOR %%c in ("%GITHUB_REPOSITORY%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload rackspace:/cdn.cyberduck.ch/ "%%c" --username %RACKSPACE_USER% --password %RACKSPACE_PASSWORD% --retry --quiet --existing overwrite --region DFW - name: run batch command shell: cmd - run: FOR %%c in ("%GITHUB_WORKSPACE%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload s3:/release.cyberduck.io/ "%%c" --username %AWS_ACCESS_KEY_DEPLOYMENT% --password %AWS_SECRET_KEY_DEPLOYMENT% --retry --quiet --existing overwrite --region us-east-1 + run: FOR %%c in ("%GITHUB_REPOSITORY%\windows\target\release\Cyberduck-*") DO "C:\Program Files\Cyberduck CLI\duck.exe" --upload s3:/release.cyberduck.io/ "%%c" --username %AWS_ACCESS_KEY_DEPLOYMENT% --password %AWS_SECRET_KEY_DEPLOYMENT% --retry --quiet --existing overwrite --region us-east-1 - name: Upload Artifacts uses: actions/upload-artifact@v3.1.3 if: always() From 52633d0a9c4edc1930a4ce69e7799816f145db02 Mon Sep 17 00:00:00 2001 From: RaveenaRamany <61196071+RaveenaRamany@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:29:43 +0100 Subject: [PATCH 10/40] Add workflow cyberduck-release-windows-chocolatey --- .../cyberduck-release-windows-chocolatey.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/cyberduck-release-windows-chocolatey.yml diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml new file mode 100644 index 00000000000..a4a9f80c573 --- /dev/null +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -0,0 +1,17 @@ +name: cyberduck-release-windows-chocolatey +on: + workflow_dispatch: +env: +# # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable +jobs: + build: + runs-on: + - self-hosted + - windows + steps: + - name: checkout + uses: actions/checkout@v4.1.0 + - name: run batch command + shell: cmd + run: FOR %%c in ("%WORKSPACE%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key 195755fd-123d-4325-a497-036ee455c54e %%c +# # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients From dc9cbb6f553153f1d4c8e60443d82e8e152e0372 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Mon, 11 Dec 2023 13:44:34 +0100 Subject: [PATCH 11/40] comment env-key --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index a4a9f80c573..23bc7cde010 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -1,7 +1,7 @@ name: cyberduck-release-windows-chocolatey on: workflow_dispatch: -env: +#env: # # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable jobs: build: From 4750959046537676c9f08371fadd10b4e6950147 Mon Sep 17 00:00:00 2001 From: RaveenaRamany <61196071+RaveenaRamany@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:25:01 +0100 Subject: [PATCH 12/40] Update cyberduck-release-windows-chocolatey.yml Added Secret API Key --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 23bc7cde010..321b17cf839 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -1,7 +1,8 @@ name: cyberduck-release-windows-chocolatey on: workflow_dispatch: -#env: +env: + CHOCOLATEY_API: "${{ secrets.CHOCOLATEY_API_KEY }}" # # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable jobs: build: @@ -13,5 +14,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: cmd - run: FOR %%c in ("%WORKSPACE%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key 195755fd-123d-4325-a497-036ee455c54e %%c + run: FOR %%c in ("%WORKSPACE%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key ${env:CHOCOLATEY_API} %%c # # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients + + From 06ca9756fc439404780f6cf702f61542edc02063 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 13:33:00 +0100 Subject: [PATCH 13/40] fix Variable GITHUB_REPOSITROY --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 321b17cf839..f1d4fcf6aae 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: cmd - run: FOR %%c in ("%WORKSPACE%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key ${env:CHOCOLATEY_API} %%c + run: FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c # # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients From 40c20d8f10167239696a26bb666a6b59b908794f Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 13:38:57 +0100 Subject: [PATCH 14/40] update runs-on --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index f1d4fcf6aae..1500d5e8948 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -7,8 +7,7 @@ env: jobs: build: runs-on: - - self-hosted - - windows + - windows-latest steps: - name: checkout uses: actions/checkout@v4.1.0 From 815aa50e739cf9d11f097bb957a29e737db6337b Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 14:54:22 +0100 Subject: [PATCH 15/40] rewrite in Powershell --- .../workflows/cyberduck-release-windows-chocolatey.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 1500d5e8948..2cdd8e154ad 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -12,8 +12,12 @@ jobs: - name: checkout uses: actions/checkout@v4.1.0 - name: run batch command - shell: cmd - run: FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c + shell: powershell + run: Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + #FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c # # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients +# echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } + + From 0ad82713acec687573ab0541af62d7e43339b4ad Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 14:57:28 +0100 Subject: [PATCH 16/40] change file destination for test --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 2cdd8e154ad..cfd5780c41a 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,11 +13,14 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + run: echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } + + #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + + #CMD COMMAND Original #FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c # # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients -# echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } From b380e2cbff8ff78d0be085c74cd36e2f10fb1465 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 15:16:17 +0100 Subject: [PATCH 17/40] testing nupkg file --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index cfd5780c41a..efc4a1cafca 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "c:\testfolder\test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 00d80a2327b3d45599bb35bd4d0d11449a779cf9 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 15:30:39 +0100 Subject: [PATCH 18/40] create sourcefolder --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index efc4a1cafca..e6292c2a8c3 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "c:\testfolder\test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source ="c:\testfolder" } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 18fed8df2a2747634fbb7f43ac5ac4208e728fc4 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 15:38:12 +0100 Subject: [PATCH 19/40] fix space error --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index e6292c2a8c3..6584449f7e7 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source ="c:\testfolder" } + run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'c:\testfolder'" } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From f2acceee32b066584cd74b1b35202ff586edf45e Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 15:42:55 +0100 Subject: [PATCH 20/40] fix source path --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 6584449f7e7..735dd60954e 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'c:\testfolder'" } + run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'c:\testfolder\'" } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 26c560998cb0f11af46c8c0b932dc9bc5faecf72 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 15:51:12 +0100 Subject: [PATCH 21/40] add file to sourcepath --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 735dd60954e..a867b405c26 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'c:\testfolder\'" } + run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'file:///c:\testfolder\'" } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 2d2803eac46b44cf103ecc8556d167bdc30046e9 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:01:55 +0100 Subject: [PATCH 22/40] choco push test --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index a867b405c26..ee07b7e2fad 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "c:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'file:///c:\testfolder\'" } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'C:\testfolder\'" } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From ed95adf4a279111cce3cb59a2cd95f4600a9bbf9 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:04:51 +0100 Subject: [PATCH 23/40] choco push test --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index ee07b7e2fad..8fa908b829c 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} --source="'C:\testfolder\'" } + run: choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 2aeb00919736d356b700f73d19a3e97ca983e983 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:08:31 +0100 Subject: [PATCH 24/40] remove debug --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 8fa908b829c..69ef51d7ce6 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --debug --api-key ${CHOCOLATEY_API} } + run: choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 1b3a17497f32fcf8bc44ccebf71d67f43211f2eb Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:15:03 +0100 Subject: [PATCH 25/40] test with cyberduck choco package --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 69ef51d7ce6..84b7acff5d1 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; echo "test" > ${Env:GITHUB_WORKSPACE}\test.nupkg; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; Start-BitsTransfer -Source https://community.chocolatey.org/api/v2/package/duck/8.7.0.40629 -Destination ${Env:GITHUB_WORKSPACE}\cyberduck-cli.nupkg; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 614ca1cb82a2368bf65481531e8d028a3c71c242 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:26:28 +0100 Subject: [PATCH 26/40] local file choco push test --- .../cyberduck-release-windows-chocolatey.yml | 2 +- 0-TEMP-CHOCO/duck.8.7.0.40629.nupkg | Bin 0 -> 3914 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 0-TEMP-CHOCO/duck.8.7.0.40629.nupkg diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 84b7acff5d1..625027ecf72 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; Start-BitsTransfer -Source https://community.chocolatey.org/api/v2/package/duck/8.7.0.40629 -Destination ${Env:GITHUB_WORKSPACE}\cyberduck-cli.nupkg; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } diff --git a/0-TEMP-CHOCO/duck.8.7.0.40629.nupkg b/0-TEMP-CHOCO/duck.8.7.0.40629.nupkg new file mode 100644 index 0000000000000000000000000000000000000000..2276e41508d4ef79b0d0cb25dda4bc7dd5873c66 GIT binary patch literal 3914 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 Bl5GG0 literal 0 HcmV?d00001 From a8900b922b1a18ff1069fdd1bfe41732d1dc5ec4 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:28:47 +0100 Subject: [PATCH 27/40] enable debugging --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 625027ecf72..7741838eb70 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 8f0dbec8b69b5613ca819c90b04066f1a09cfc44 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:35:34 +0100 Subject: [PATCH 28/40] fix path --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 7741838eb70..29d27f9b91f 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_ --debug --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 99d505437b39e129828dcd77160c0bb933bba62c Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:41:35 +0100 Subject: [PATCH 29/40] debug path --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 29d27f9b91f..531e89fc73e 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } + run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; echo "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | echo $_.FullName ; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 56851c4794e45ee1b400fa56a79d1a31c5a06cdc Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:45:46 +0100 Subject: [PATCH 30/40] choco push repo test --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 531e89fc73e..21843fa9eea 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: New-Item -Path "C:\" -Name "testfolder" -ItemType Directory; choco config set --name="'defaultPushSource'" --value="'C:\testfolder\'"; echo "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | echo $_.FullName ; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } + run: Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From c8a712e06eaff69d8186c27f03726677e64099d0 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:48:50 +0100 Subject: [PATCH 31/40] set default push source --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 21843fa9eea..64ff8d7bfaa 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } + run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From b8776acdf4b3aa0bcb4b3bcafc983ac856cfb2bf Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:53:45 +0100 Subject: [PATCH 32/40] configure choco api key --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 64ff8d7bfaa..b342425ff7e 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug --api-key ${CHOCOLATEY_API} } + run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From 1011f7d276bc324d1a873c18c1d62c595addca72 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 16:56:03 +0100 Subject: [PATCH 33/40] fix powershell env syntax --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index b342425ff7e..cccb590f177 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } + run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } From d095c5253c242be4d7d5bea2ec9feb7451d27945 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 17:13:35 +0100 Subject: [PATCH 34/40] Add git nupkg for testing --- 0-TEMP-CHOCO/duck.8.7.0.40629.nupkg | Bin 3914 -> 0 bytes 0-TEMP-CHOCO/git.2.43.0.nupkg | Bin 0 -> 3769 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 0-TEMP-CHOCO/duck.8.7.0.40629.nupkg create mode 100644 0-TEMP-CHOCO/git.2.43.0.nupkg diff --git a/0-TEMP-CHOCO/duck.8.7.0.40629.nupkg b/0-TEMP-CHOCO/duck.8.7.0.40629.nupkg deleted file mode 100644 index 2276e41508d4ef79b0d0cb25dda4bc7dd5873c66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3914 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 Bl5GG0 diff --git a/0-TEMP-CHOCO/git.2.43.0.nupkg b/0-TEMP-CHOCO/git.2.43.0.nupkg new file mode 100644 index 0000000000000000000000000000000000000000..be78722fad96eb398e0df90d0126292a97af3291 GIT binary patch literal 3769 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 Date: Thu, 14 Dec 2023 17:31:41 +0100 Subject: [PATCH 35/40] add local choco repo --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index cccb590f177..f47855e3a35 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,9 +13,8 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - - #Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_ --verbose --api-key ${CHOCOLATEY_API} } + run: choco config set --name="'defaultPushSource'" --value="'C:\'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "'C:\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } + # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } #CMD COMMAND Original #FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c From 40441fba08e204cb24cdff68d39cc51b1a281205 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 17:35:47 +0100 Subject: [PATCH 36/40] change local path --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index f47855e3a35..9443a2ad31c 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="'C:\'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "'C:\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } + run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "'C:\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } #CMD COMMAND Original From dc162ea71d8476f9e0c909c2dfa6c27acfb3ab0d Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 17:43:11 +0100 Subject: [PATCH 37/40] add api key --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 9443a2ad31c..0991d5de748 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: run batch command shell: powershell - run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "'C:\'"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } + run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "${Env:GITHUB_WORKSPACE}\..\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } #CMD COMMAND Original From 3496a3087d7f6d7226e9ee928c76c343fa4d79c2 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Thu, 14 Dec 2023 17:44:47 +0100 Subject: [PATCH 38/40] remove old batch command --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 0991d5de748..c40e75a520e 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -16,8 +16,6 @@ jobs: run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "${Env:GITHUB_WORKSPACE}\..\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - #CMD COMMAND Original - #FOR %%c in ("%GITHUB_REPOSITORY%\..\cyberduck-release-windows\windows\target\release\cyberduck.*.nupkg") DO C:\ProgramData\chocolatey\bin\cpush --verbose --api-key %CHOCOLATEY_API% %%c # # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients From 8ba0f95076f24701c7b7fded7a1c935d7a582804 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 17 Dec 2023 18:23:16 +0100 Subject: [PATCH 39/40] Add comments --- .../cyberduck-release-windows-chocolatey.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index c40e75a520e..92c2e09c56d 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -3,7 +3,6 @@ on: workflow_dispatch: env: CHOCOLATEY_API: "${{ secrets.CHOCOLATEY_API_KEY }}" -# # TimestamperBuildWrapper was not converted because the behavior is available by default in GitHub Actions and/or it is not configurable jobs: build: runs-on: @@ -14,10 +13,8 @@ jobs: - name: run batch command shell: powershell run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "${Env:GITHUB_WORKSPACE}\..\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - -# # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients - - - - + # The following line must be used for production + # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } + + # Github only allows sending notifications to the actor of the GitHub Action: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs + # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients From 686884df0e1a5b998798726c8a0bddedb9ec9793 Mon Sep 17 00:00:00 2001 From: Raveena Ramany Date: Sun, 17 Dec 2023 18:23:19 +0100 Subject: [PATCH 40/40] Add comments --- .github/workflows/cyberduck-release-windows-chocolatey.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cyberduck-release-windows-chocolatey.yml b/.github/workflows/cyberduck-release-windows-chocolatey.yml index 92c2e09c56d..d0f1f3828c1 100644 --- a/.github/workflows/cyberduck-release-windows-chocolatey.yml +++ b/.github/workflows/cyberduck-release-windows-chocolatey.yml @@ -10,11 +10,11 @@ jobs: steps: - name: checkout uses: actions/checkout@v4.1.0 - - name: run batch command + - name: Publish to Chocolatey shell: powershell run: choco config set --name="'defaultPushSource'" --value="${Env:GITHUB_WORKSPACE}\..\"; choco apikey add -k ${Env:CHOCOLATEY_API} -s "${Env:GITHUB_WORKSPACE}\..\"; Get-ChildItem "${Env:GITHUB_WORKSPACE}\0-TEMP-CHOCO\" -Filter *.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - # The following line must be used for production + # TODO: The following line must be used for production # choco config set --name="'defaultPushSource'" --value="'https://push.chocolatey.org/'"; choco apikey add -k ${Env:CHOCOLATEY_API} -s https://push.chocolatey.org/; Get-ChildItem "${Env:GITHUB_WORKSPACE}\..\cyberduck-release-windows\windows\target\release\" -Filter cyberduck.*.nupkg | Foreach-Object -process { choco push $_.FullName --debug } - # Github only allows sending notifications to the actor of the GitHub Action: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs + # TODO: Github only allows sending notifications to the actor of the GitHub Action: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs # Mailer plugin was not converted because GitHub Actions will email the actor after failed build and does not support emailing a list of recipients