Files
bherbruck e11055b6e3 CI and release: every Linux and Windows job runs on Blacksmith (#16323)
* CI and release: every Linux and Windows job runs on Blacksmith

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release: macOS builds on Blacksmith's macOS 15 runners too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Release on Blacksmith: fix the FreeBSD, Flatpak and Snap jobs, drop the icons job

- FreeBSD: the VM action syncs $HOME/work and cds into $GITHUB_WORKSPACE,
  which only works where the checkout lives under $HOME/work (GitHub's
  runners; Blacksmith's is under $HOME/_work). The action now only starts
  the VM (sync: no); rsync copies the source in and dist/release out. The
  VM is sized from the runner, on a 16 vCPU runner.
- Flatpak: the AppArmor user-namespace sysctl is only set where it exists.
- Snap: installing snapcraft retries Snap Store timeouts (HTTP 408).
- The icons job goes: make_icons only copies the committed icon files and
  package.ps1 falls back to the same committed solidcraft.ico, so Windows
  no longer waits for it.
- actionlint knows the new runner labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:22:37 +00:00

40 lines
1.3 KiB
YAML

name: Publish Flatpak repository to Pages
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: "Published GitHub release tag to publish (for example, v1.2.3)"
required: true
type: string
permissions:
contents: read
actions: write
concurrency:
group: flatpak-pages-${{ github.repository }}
cancel-in-progress: false
jobs:
publish:
name: Request the combined docs, web, and Flatpak deployment
# A pre-release stays off the Flatpak feed: the feed's one branch is what `flatpak update` offers.
if: github.event_name == 'workflow_dispatch' || !github.event.release.prerelease
runs-on: blacksmith-2vcpu-ubuntu-2404
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }}
steps:
- name: Deploy through the shared Pages workflow
run: |
set -euo pipefail
published="$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$RELEASE_TAG" \
--jq 'select(.draft == false and .published_at != null) | .tag_name')"
test "$published" = "$RELEASE_TAG"
gh workflow run pages.yml --repo "$GITHUB_REPOSITORY" --ref main \
-f release_tag="$RELEASE_TAG"
echo "Requested the combined Pages deployment for $RELEASE_TAG" >>"$GITHUB_STEP_SUMMARY"