Add Store support and unsigned app releases
This commit is contained in:
36
templates/rust-app/.github/workflows/release.yml
vendored
Normal file
36
templates/rust-app/.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user