Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Packages: publish the tested Chocolatey package when asked; MSIX run by hand only

Yashwanth Kamireddidbf823852ec9
diff --git a/.github/workflows/msix.yml b/.github/workflows/msix.yml
index db9c2f6..af4e11e 100644
--- a/.github/workflows/msix.yml
+++ b/.github/workflows/msix.yml
@@ -17,10 +17,6 @@
name: MSIX for the Microsoft Store
on:
- # TEMPORARY: GitHub dispatches only workflows on the default branch; this proves the
- # workflow from its own branch before it reaches main. Removed before merging.
- push:
- branches: [msix]
workflow_dispatch:
inputs:
identity_name:
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index 9fd4f88..bd92df3 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -16,12 +16,16 @@ on:
description: "Release to package, without the v (its files must be on GitHub Releases)"
type: string
default: "0.1.3"
+ publish:
+ description: "Push the tested Chocolatey package to community.chocolatey.org"
+ type: boolean
+ default: false
permissions:
contents: read
env:
- VERSION: ${{ inputs.version || '0.1.2' }}
+ VERSION: ${{ inputs.version }}
jobs:
windows:
@@ -70,6 +74,18 @@ jobs:
if (choco list skykeep --exact --limit-output) { throw "choco still lists skykeep" }
"uninstalled: skykeep.exe gone and choco lists nothing"
+ # Only the package this run just installed and uninstalled, and only when asked. The
+ # first versions wait for a human moderator on community.chocolatey.org.
+ - name: Chocolatey — publish
+ if: inputs.publish
+ shell: pwsh
+ env:
+ CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
+ run: |
+ if (-not $env:CHOCOLATEY_API_KEY) { throw "the CHOCOLATEY_API_KEY secret is not set" }
+ choco push "out\skykeep.$env:VERSION.nupkg" --source https://push.chocolatey.org/ --api-key $env:CHOCOLATEY_API_KEY
+ if ($LASTEXITCODE) { throw "choco push failed ($LASTEXITCODE)" }
+
- name: Scoop — install, start, checkver and autoupdate, uninstall
shell: pwsh
env:
diff --git a/packaging/chocolatey/README.md b/packaging/chocolatey/README.md
index 813c6bf..183fe5b 100644
--- a/packaging/chocolatey/README.md
+++ b/packaging/chocolatey/README.md
@@ -13,7 +13,7 @@ artifact `windows-packages-<version>` holds the packed `.nupkg` for that version
## Account
A free account at <https://community.chocolatey.org/account/Register>. The nuspec's
-`<owners>` is `YashwanthKamireddi`; change it if the account's username differs. The API key
+`<owners>` is the account's username, `yash_on_chocolatey`. The API key
is under <https://community.chocolatey.org/account>.
## Publishing a release
diff --git a/packaging/chocolatey/skykeep.nuspec b/packaging/chocolatey/skykeep.nuspec
index b979bc6..7567696 100644
--- a/packaging/chocolatey/skykeep.nuspec
+++ b/packaging/chocolatey/skykeep.nuspec
@@ -4,7 +4,7 @@
<id>skykeep</id>
<version>0.1.2</version>
<packageSourceUrl>https://github.com/YashwanthKamireddi/Skykeep/tree/main/packaging/chocolatey</packageSourceUrl>
- <owners>YashwanthKamireddi</owners>
+ <owners>yash_on_chocolatey</owners>
<title>Skykeep</title>
<authors>Yashwanth Kamireddi</authors>
<projectUrl>https://github.com/YashwanthKamireddi/Skykeep</projectUrl>