Files
sdk/templates/rust-app/.github/workflows/release.yml
2026-10-25 14:11:49 +01:00

37 lines
1.3 KiB
YAML

# GitHub: on a tag (v1.2.3), build in Debian trixie, sign, and publish a
# release with the three store assets. Secret: SF_SIGNING_KEY (base64 of
# key.pem on one line: `base64 -w0 key.pem`).
name: release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
container: debian:trixie
env:
SF_PACK_GIT: https://gitea.bluefox.support/bluefox/fox-in-the-box
steps:
- uses: actions/checkout@v4
- name: Toolchain
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends build-essential pkg-config curl ca-certificates git \
libfontconfig1-dev libfreetype-dev libxkbcommon-dev gh >/dev/null
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: sf-pack
run: cargo install -q --locked --git "$SF_PACK_GIT" sf-pack
- name: Build and sign
env:
SF_SIGNING_KEY: ${{ secrets.SF_SIGNING_KEY }}
run: ./package.sh
- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global --add safe.directory "$PWD"
gh release create "$GITHUB_REF_NAME" dist/* --title "$GITHUB_REF_NAME" --notes "Fennec OS store release"