Skip to content
Merged
Show file tree
Hide file tree
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
33 changes: 24 additions & 9 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ on:
- "CHANGELOG.md"
- "Amado/Resources/Assets.xcassets/AppIcon.appiconset/icon_1024.png"
- ".github/workflows/deploy-site.yml"
- "wrangler.jsonc"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
group: deploy-site
cancel-in-progress: false

jobs:
Expand Down Expand Up @@ -49,7 +48,7 @@ jobs:
BUST="${GITHUB_SHA:0:8}"
sed -i "s#\"./style.css\"#\"./style.css?v=${BUST}\"#g" "$SITE"/*.html

# A Pages deploy replaces the whole site. Always take Sparkle's feed
# A site deploy replaces the whole site. Always take Sparkle's feed
# from the latest GitHub Release so a first release does not depend on
# an appcast already existing on the website.
if [ -n "$VERSION" ]; then
Expand All @@ -60,16 +59,32 @@ jobs:
echo "No release yet; appcast.xml is not expected"
fi

- uses: actions/upload-pages-artifact@v5
- name: Add static asset headers
run: cp web/_headers "$RUNNER_TEMP/site/_headers"

- uses: actions/upload-artifact@v4
with:
name: site
path: ${{ runner.temp }}/site
include-hidden-files: true
retention-days: 1

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: cloudflare
url: https://amado.pangmo5.dev
steps:
- id: deployment
uses: actions/deploy-pages@v5
- uses: actions/checkout@v6
- uses: actions/download-artifact@v4
with:
name: site
path: dist
- name: Deploy static assets
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "4.131.2"
command: deploy
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

# Push a tag such as v0.1.0 to build, sign, notarize, and publish the macOS
# agent. The workflow also signs the archive for Sparkle, then dispatches the
# dedicated site workflow so Pages receives a deployment from the main branch.
# dedicated site workflow so Workers receives a deployment from the main branch.
on:
push:
tags:
Expand Down Expand Up @@ -372,11 +372,7 @@ jobs:
git commit -m "amado ${VERSION}"
git push

# A tag and its main-branch commit can share GITHUB_SHA. Deploying Pages
# directly from both runs reuses pages_build_version and can report
# success without replacing the earlier artifact. A workflow_dispatch of
# the dedicated site workflow avoids that collision and always downloads
# the appcast from the GitHub Release published above.
# Deploy from main after the canonical signed release feed is available.
- name: Deploy website with release appcast
env:
GH_TOKEN: ${{ github.token }}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ fastlane/test_output/
*.cer
*.pem
*.certSigningRequest

# Cloudflare local output
/dist/
/.wrangler/
2 changes: 1 addition & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ let project = Project(
"NSLocalNetworkUsageDescription": .string(localNetworkUsage),
"NSBonjourServices": .array([.string("_amado._tcp")]),
"NSBluetoothAlwaysUsageDescription": .string(bluetoothUsageMac),
"SUFeedURL": "https://pangmo5.dev/Amado/appcast.xml",
"SUFeedURL": "https://amado.pangmo5.dev/appcast.xml",
"SUEnableAutomaticChecks": true,
"SUPublicEDKey": "$(SPARKLE_PUBLIC_ED_KEY)",
]),
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ SECURE PAIRING

Scan the QR code shown by the Mac app to pair. Commands and their matching responses are authenticated with HMAC-SHA256, fresh timestamps, and one-time nonces. Amado can lock your Mac and report its lock state. It cannot unlock it.

The free Amado macOS companion app is required. Download it from pangmo5.dev/Amado/ or GitHub.
The free Amado macOS companion app is required. Download it from amado.pangmo5.dev/ or GitHub.
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/marketing_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://pangmo5.dev/Amado/
https://amado.pangmo5.dev/
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/privacy_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://pangmo5.dev/Amado/privacy.html
https://amado.pangmo5.dev/privacy.html
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/support_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://pangmo5.dev/Amado/
https://amado.pangmo5.dev/
2 changes: 1 addition & 1 deletion fastlane/metadata/review_information/notes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Amado is a companion app for the free Amado macOS menu bar agent. The companion requires macOS 15 or later and does not require an account or purchase.

Review steps:
1. On the iPhone setup screen, tap Get Amado for Mac or visit https://pangmo5.dev/Amado/.
1. On the iPhone setup screen, tap Get Amado for Mac or visit https://amado.pangmo5.dev/.
2. Install and open the Mac app.
3. Choose Show pairing code in the Amado menu bar menu.
4. In the iPhone app, tap Scan pairing QR and scan the code.
Expand Down
2 changes: 2 additions & 0 deletions web/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/appcast.xml
Cache-Control: public, max-age=0, must-revalidate
2 changes: 1 addition & 1 deletion web/caffeinate.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<a href="https://github.com/PangMo5/Amado/blob/main/NOTICE.md">Licensing</a>
</div>
<p>This page renders <code>docs/CAFFEINATE.md</code> from <code>main</code>, the single source of truth. Not affiliated with Apple Inc.</p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://pangmo5.dev/SwiftyCrow/">SwiftyCrow</a> · <a href="https://pangmo5.dev/Tatami/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://swiftycrow.pangmo5.dev/">SwiftyCrow</a> · <a href="https://tatami.pangmo5.dev/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion web/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<a href="https://github.com/PangMo5/Amado/blob/main/NOTICE.md">Licensing</a>
</div>
<p>This page renders <code>docs/CONFIGURATION.md</code> from <code>main</code>, the single source of truth. Not affiliated with Apple Inc.</p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://pangmo5.dev/SwiftyCrow/">SwiftyCrow</a> · <a href="https://pangmo5.dev/Tatami/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://swiftycrow.pangmo5.dev/">SwiftyCrow</a> · <a href="https://tatami.pangmo5.dev/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2>Get Amado.</h2>
<a href="https://github.com/PangMo5/Amado/blob/main/NOTICE.md">Licensing</a>
</div>
<p>The Mac app is AGPL-3.0-only; iPhone, Watch, Widget, and shared core sources are MPL-2.0. Not affiliated with Apple Inc.</p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://pangmo5.dev/SwiftyCrow/">SwiftyCrow</a> · <a href="https://pangmo5.dev/Tatami/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://swiftycrow.pangmo5.dev/">SwiftyCrow</a> · <a href="https://tatami.pangmo5.dev/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion web/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<a href="https://github.com/PangMo5/Amado/blob/main/NOTICE.md">Licensing</a>
</div>
<p>This page renders <code>docs/PRIVACY.md</code> from <code>main</code>, the single source of truth. Not affiliated with Apple Inc.</p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://pangmo5.dev/SwiftyCrow/">SwiftyCrow</a> · <a href="https://pangmo5.dev/Tatami/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://swiftycrow.pangmo5.dev/">SwiftyCrow</a> · <a href="https://tatami.pangmo5.dev/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion web/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1>What's new</h1>
<a href="https://github.com/PangMo5/Amado/blob/main/NOTICE.md">Licensing</a>
</div>
<p>Rendered from <code>CHANGELOG.md</code> and <code>CHANGELOG-iOS.md</code> on <code>main</code>. Not affiliated with Apple Inc.</p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://pangmo5.dev/SwiftyCrow/">SwiftyCrow</a> · <a href="https://pangmo5.dev/Tatami/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
<p class="footer-apps">Apps by <a href="https://pangmo5.dev/">PangMo5</a>: <a href="https://swiftycrow.pangmo5.dev/">SwiftyCrow</a> · <a href="https://tatami.pangmo5.dev/">Tatami</a> · <span class="cur" aria-current="page">Amado</span></p>
</div>
</footer>

Expand Down
20 changes: 20 additions & 0 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-FileCopyrightText: 2026 PangMo5 and contributors
// SPDX-License-Identifier: AGPL-3.0-only
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "amado-site",
"compatibility_date": "2026-09-14",
"workers_dev": true,
"preview_urls": false,
"assets": {
"directory": "./dist",
"html_handling": "auto-trailing-slash",
"not_found_handling": "404-page"
},
"routes": [
{
"pattern": "amado.pangmo5.dev",
"custom_domain": true
}
]
}
Loading