All checks were successful
ci / test (push) Successful in 17m21s
The app-facing parts of Fennec OS move here, so apps build without the OS sources: - sf-app: the app contract (manifest, permissions, store rules, sandbox, launch), from sf-ipc; the OS depends on it by tag. - sf-ui (+ gallery), sf-pack, templates/rust-app, docs. Store apps may now register for DIAL: a [dial] section implies the new `dial` permission, which the user approves like any other. The templates no longer mention signing: store releases are unsigned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.6 KiB
YAML
38 lines
1.6 KiB
YAML
# Gitea / Forgejo (Codeberg): on a tag (v1.2.3), build and publish a release
|
|
# with the two store assets. The job token creates the release.
|
|
name: release
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:trixie
|
|
env:
|
|
SF_PACK_GIT: https://gitea.bluefox.support/fennec/sdk
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq --no-install-recommends build-essential pkg-config curl ca-certificates git jq \
|
|
libfontconfig1-dev libfreetype-dev libxkbcommon-dev >/dev/null
|
|
git clone --depth 1 --branch "$GITHUB_REF_NAME" \
|
|
"${GITHUB_SERVER_URL%%://*}://oauth2:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git" src
|
|
- name: Build
|
|
run: |
|
|
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
cargo install -q --locked --git "$SF_PACK_GIT" sf-pack
|
|
cd src && ./package.sh
|
|
- name: Release
|
|
env:
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases"
|
|
id=$(curl -fsS -H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
|
-d "{\"tag_name\":\"$GITHUB_REF_NAME\",\"name\":\"$GITHUB_REF_NAME\"}" "$api" | jq -r .id)
|
|
for f in src/dist/*; do
|
|
curl -fsS -H "Authorization: token $TOKEN" -F "attachment=@$f" "$api/$id/assets?name=$(basename "$f")" >/dev/null
|
|
done
|