release.sh writes updates/manifest.json at release time (predictable asset URL) — no CI commit-back, no push-token problem, no detached checkout dance. release_publish.sh is create-release + upload only. Manifest sha256 now optional; updater skips verification with a note when absent (HTTPS + gzip CRC cover the realistic cases). Fixed the repo-URL sed keeping a .git suffix (caught by a worktree dry run). Updater tests: 8 (sha-less manifest flow added).
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: release
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Linux build deps
|
|
run: |
|
|
if command -v apt-get >/dev/null; then
|
|
sudo apt-get update
|
|
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
|
|
fi
|
|
|
|
- name: Setup Flutter (beta)
|
|
run: |
|
|
git clone https://github.com/flutter/flutter.git -b beta --depth 1 ~/flutter
|
|
echo "$HOME/flutter/bin" >> $GITHUB_PATH
|
|
|
|
- name: Build tarball
|
|
run: tool/package_linux.sh
|
|
|
|
- name: Upload tarball artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-tarball
|
|
path: dist/*.tar.gz
|
|
|
|
- name: Publish release
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: tool/release_publish.sh "${{ github.ref_name }}"
|