A release sends the Cardputer Zero package to M5Stack's app store
installers.yml gains a cardputer-zero job: build-deb.sh in a Debian 13 container on an arm64 runner, the same system as the Cardputer. The release attaches the .deb with the other downloads and lists it in SHA256SUMS, and its notes say where Cardputer users get MeshTerm. github-release.yml gains a store job after the release. It runs scripts/cardputer-zero/store-publish.py, which calls czdev publish with two corrections: the manifest's email is johnputer@meshterm.net, not the GitHub profile's, and the branch name stays the same between czdev's two calls (for a fork, the second call named a branch that was never pushed, and GitHub refused the PR). It also sends czdev's git over HTTPS with the token, and it publishes nothing when the store has the version or a PR for it is open, so a rerun opens no second PR. AppBuilder is pinned to the commit whose functions it corrects. The job needs the CARDPUTER_STORE_TOKEN secret (public_repo scope). The release skill now checks the store PR and counts fifteen assets. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cc626160d4
commit
c5e7ce5a62
5 files changed
+288
-5
No files matched your search
@@ -187,6 +187,9 @@ jobs:
|
||||
.\meshterm-@VERSION@-windows-x64.exe
|
||||
```
|
||||
|
||||
**Cardputer Zero** — install MeshTerm from M5Stack's app store on the device. The
|
||||
same package is attached below as `meshterm_@VERSION@-1_arm64.deb`.
|
||||
|
||||
Every binary below is listed in `SHA256SUMS`. The version-less copies —
|
||||
`meshterm-macos-arm64` and its four siblings — are the same binaries under a name
|
||||
that never changes, for anything that wants whichever release is newest without
|
||||
@@ -223,6 +226,52 @@ jobs:
|
||||
$PRERELEASE
|
||||
echo "https://github.com/${{ github.repository }}/releases/tag/$TAG"
|
||||
|
||||
# The Cardputer Zero's package goes to M5Stack's app store. `czdev publish` puts it in a
|
||||
# pull request on CardputerZero/packages, and the store merges an update when its checks
|
||||
# pass. scripts/cardputer-zero/store-publish.py runs czdev with two corrections and stops
|
||||
# if the store already has this version or a pull request for it is open. Thus a second
|
||||
# run of a release opens no second pull request.
|
||||
store:
|
||||
name: send the Cardputer package to the app store
|
||||
needs: publish
|
||||
if: ${{ !inputs.prerelease }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
env:
|
||||
# A token of jpmartineau with the public_repo scope: it uploads to the fork of
|
||||
# CardputerZero/packages and opens the pull request as its author.
|
||||
CARDPUTER_STORE_TOKEN: ${{ secrets.CARDPUTER_STORE_TOKEN }}
|
||||
# The czdev that store-publish.py corrects. Change the two together.
|
||||
APPBUILDER_COMMIT: 64edc2292628b436d3e624b150faeed2d60c31af
|
||||
steps:
|
||||
- name: Check for the token
|
||||
run: |
|
||||
if [ -z "$CARDPUTER_STORE_TOKEN" ]; then
|
||||
echo "::error::CARDPUTER_STORE_TOKEN is not set; scripts/cardputer-zero/store-publish.py says what it needs."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.tag || github.ref }}
|
||||
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: meshterm-cardputer-zero
|
||||
path: deb
|
||||
|
||||
- name: Get czdev
|
||||
run: |
|
||||
git init -q appbuilder
|
||||
git -C appbuilder fetch -q --depth 1 \
|
||||
https://github.com/m5stack/CardputerZero-AppBuilder.git "$APPBUILDER_COMMIT"
|
||||
git -C appbuilder checkout -q FETCH_HEAD
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
python3 scripts/cardputer-zero/store-publish.py --czdev appbuilder \
|
||||
--deb deb/meshterm_*_arm64.deb
|
||||
|
||||
website:
|
||||
name: put the version on meshterm.net
|
||||
needs: publish
|
||||
|
||||
Reference in new issue
Block a user