1 Commits

Author SHA1 Message Date
ml 4be350d758 dist.sh builds versioned, signed artifacts for both apps from a git tag
release / build (push) Has been cancelled
(semver drives Android versionCode/versionName and package.json). The
build-image/ Dockerfile pins the same toolchain for a portable,
containerized Gitea Actions runner (build-image.sh builds and pushes
it) so releases don't depend on any one machine's local setup.
Pushing vX.Y.Z now builds and publishes a Gitea Release automatically.
2026-07-02 13:07:52 +02:00
2 changed files with 5 additions and 9 deletions
+2 -4
View File
@@ -13,10 +13,8 @@ jobs:
# regardless of this instance's default Actions permission mode. # regardless of this instance's default Actions permission mode.
permissions: permissions:
contents: write contents: write
# Must match a label your act_runner is registered with. The runner's # Must match the label your self-hosted act_runner registers with.
# own default label-image is irrelevant here since `container:` below runs-on: self-hosted
# overrides the actual build image per-job.
runs-on: ubuntu-latest
container: container:
# :latest — always the most recently pushed build-image.sh output. # :latest — always the most recently pushed build-image.sh output.
# Pin to a specific tag here (see build-image/VERSION) if you need a # Pin to a specific tag here (see build-image/VERSION) if you need a
+3 -5
View File
@@ -285,17 +285,15 @@ line in `.gitea/workflows/release.yml` to the versioned tag instead.
# https://gitea.com/gitea/act_runner — grab the latest release binary # https://gitea.com/gitea/act_runner — grab the latest release binary
./act_runner register --no-interactive \ ./act_runner register --no-interactive \
--instance <your gitea URL> --token <token> \ --instance <your gitea URL> --token <token> \
--name <runner-name> --labels ubuntu-latest:docker://node:20-bookworm --name <runner-name> --labels self-hosted:docker://node:20-bookworm
./act_runner daemon ./act_runner daemon
``` ```
The image after `docker://` in `--labels` is only a fallback for jobs that The image after `docker://` in `--labels` is only a fallback for jobs that
don't specify their own `container:` — irrelevant here since don't specify their own `container:` — irrelevant here since
`.gitea/workflows/release.yml` always pins its own image, but the runner `.gitea/workflows/release.yml` always pins its own image, but the runner
still needs a Docker-executor label registered to use that executor at still needs a Docker-executor label registered to use that executor at
all. The label name itself (`ubuntu-latest` above) must match `runs-on:` all. The label name itself (`self-hosted`) must match `runs-on:` in
in `.gitea/workflows/release.yml` — edit both together if you rename it, `.gitea/workflows/release.yml` — edit both together if you rename it.
or reuse a label an existing runner already advertises (check Site Admin →
Actions → Runners) to skip registering a new one entirely.
4. The runner's Docker daemon needs pull access to the registry — run 4. The runner's Docker daemon needs pull access to the registry — run
`docker login <registry>` once on that machine with the same credentials `docker login <registry>` once on that machine with the same credentials
as `registry.env`. as `registry.env`.