This repository was archived by the owner on Nov 11, 2026. It is now read-only.
Repository navigation
Merge pull request #60 from systemfsoftware/chore/remove-macos #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deployment CI | |
| on: | |
| pull_request: | |
| branches: ["main", "dev"] | |
| paths: | |
| - ".github/workflows/build-release-artifacts.yml" | |
| - ".github/workflows/deploy-aur.yml" | |
| - ".github/workflows/deploy-homebrew-tap.yml" | |
| - ".github/workflows/deploy-apt-repo.yml" | |
| - ".github/workflows/deploy-windows-installer.yml" | |
| - ".github/workflows/deploy-microsoft-store.yml" | |
| - ".github/workflows/release-manual-main.yml" | |
| - "scripts/update-aur.sh" | |
| - "scripts/cargo-flatten-dupes.sh" | |
| - "scripts/generate-homebrew-cask.sh" | |
| - "scripts/build-apt-repo.sh" | |
| - "scripts/windows/verify-signed-artifact.ps1" | |
| push: | |
| branches: ["main", "dev"] | |
| paths: | |
| - ".github/workflows/build-release-artifacts.yml" | |
| - ".github/workflows/deploy-aur.yml" | |
| - ".github/workflows/deploy-homebrew-tap.yml" | |
| - ".github/workflows/deploy-apt-repo.yml" | |
| - ".github/workflows/deploy-windows-installer.yml" | |
| - ".github/workflows/deploy-microsoft-store.yml" | |
| - ".github/workflows/release-manual-main.yml" | |
| - "scripts/update-aur.sh" | |
| - "scripts/cargo-flatten-dupes.sh" | |
| - "scripts/generate-homebrew-cask.sh" | |
| - "scripts/build-apt-repo.sh" | |
| - "scripts/windows/verify-signed-artifact.ps1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| formula-script-validation: | |
| name: Validate release helper scripts and workflow YAML | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Validate shell scripts syntax | |
| run: | | |
| bash -n scripts/cargo-flatten-dupes.sh | |
| bash -n scripts/update-aur.sh | |
| bash -n scripts/generate-homebrew-cask.sh | |
| bash -n scripts/build-apt-repo.sh | |
| - name: Validate Windows PowerShell helper syntax | |
| run: | | |
| pwsh -NoLogo -NoProfile -Command ' | |
| $errors = $null | |
| [System.Management.Automation.Language.Parser]::ParseFile("scripts/windows/verify-signed-artifact.ps1", [ref]$null, [ref]$errors) | Out-Null | |
| if ($errors.Count -gt 0) { | |
| $errors | ForEach-Object { Write-Error $_.Message } | |
| exit 1 | |
| } | |
| ' | |
| - name: Validate workflow YAML | |
| run: | | |
| ruby -e 'require "yaml"; %w[ | |
| .github/workflows/build-release-artifacts.yml | |
| .github/workflows/deploy-aur.yml | |
| .github/workflows/deploy-homebrew-tap.yml | |
| .github/workflows/deploy-apt-repo.yml | |
| .github/workflows/deploy-windows-installer.yml | |
| .github/workflows/deploy-microsoft-store.yml | |
| .github/workflows/deployment-ci.yml | |
| .github/workflows/release-manual-main.yml | |
| ].each { |path| YAML.load_file(path) }' | |
| - name: Validate deployment workflow config keys | |
| run: | | |
| set -euo pipefail | |
| grep -Fq 'vars.AUR_GIT_REPOSITORY' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.AUR_GIT_BRANCH' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_STORAGE_ACCOUNT' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_STORAGE_CONTAINER' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_REPO_DISTRIBUTION' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_REPO_COMPONENT' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_REPO_ORIGIN' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_REPO_LABEL' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_REPO_DESCRIPTION' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_STORAGE_PUBLIC_ACCESS' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.APT_STORAGE_ACCOUNT' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_STORAGE_CONTAINER' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_REPO_DISTRIBUTION' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_REPO_COMPONENT' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_REPO_ORIGIN' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_REPO_LABEL' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_REPO_DESCRIPTION' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_STORAGE_PUBLIC_ACCESS' .github/workflows/deploy-apt-repo.yml | |
| grep -Fq 'vars.APT_STORAGE_ACCOUNT' .github/workflows/deploy-windows-installer.yml | |
| grep -Fq 'AZURE_STORAGE_ACCOUNT_KEY' .github/workflows/deploy-windows-installer.yml | |
| grep -Fq 'windows-x86_64.msi' .github/workflows/deploy-windows-installer.yml | |
| grep -Fq 'windows-arm64.msi' .github/workflows/deploy-windows-installer.yml | |
| grep -Fq 'vars.MICROSOFT_STORE_PACKAGE_BASE_URL' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'vars.MICROSOFT_STORE_PRODUCT_ID' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'vars.MICROSOFT_STORE_PACKAGE_LANGUAGES' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'MICROSOFT_STORE_TENANT_ID' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'MICROSOFT_STORE_CLIENT_ID' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'MICROSOFT_STORE_CLIENT_SECRET' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'MICROSOFT_STORE_SELLER_ID' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'dbus-launch --sh-syntax' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'gnome-keyring-daemon --start --components=secrets' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'libsecret-1-0' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'microsoft/microsoft-store-apppublisher@' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq '# v1.4' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'gh release view' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'msstore submission update' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'msstore submission updateMetadata' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'msstore submission commit' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'ReleaseNotes' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq '"X64"' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq '"Arm64"' .github/workflows/deploy-microsoft-store.yml | |
| grep -Fq 'storage_container: "$web"' .github/workflows/release-manual-main.yml | |
| grep -Fq 'storage_prefix: "windows"' .github/workflows/release-manual-main.yml | |
| grep -Fq 'package_base_url: "https://apt.gitcomet.dev/windows"' .github/workflows/release-manual-main.yml | |
| grep -Fq 'product_id: $''{{ vars.MICROSOFT_STORE_PRODUCT_ID }}' .github/workflows/release-manual-main.yml | |
| grep -Fq 'package_languages: $''{{ vars.MICROSOFT_STORE_PACKAGE_LANGUAGES }}' .github/workflows/release-manual-main.yml | |
| grep -Fq 'vars.AUR_GIT_REPOSITORY' .github/workflows/deploy-aur.yml | |
| grep -Fq 'vars.AUR_GIT_BRANCH' .github/workflows/deploy-aur.yml | |
| grep -Fq 'vars.WINDOWS_SIGNING_ENDPOINT' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'vars.WINDOWS_SIGNING_ACCOUNT_NAME' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'AZURE_CREDENTIALS' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'gitcomet-windows-test' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'gitcomet-windows-release' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'azure/login@' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'artifact-signing-action@' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'file-digest:' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'timestamp-rfc3161:' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'timestamp-digest:' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'append-signature:' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'verify-signed-artifact.ps1' .github/workflows/build-release-artifacts.yml | |
| grep -Fq 'AUR_PRIVATE_SSH_KEY' .github/workflows/deploy-aur.yml | |
| grep -Fq 'AUR_PRIVATE_SSH_KEY_PASSPHRASE' .github/workflows/deploy-aur.yml | |
| grep -Fq 'ssh://aur@aur.archlinux.org/gitcomet.git' .github/workflows/deploy-aur.yml | |
| grep -Fq 'HOMEBREW_TAP_TOKEN' .github/workflows/deploy-homebrew-tap.yml | |
| - name: Generate Homebrew cask from synthetic artifacts | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist/deployment-ci | |
| printf 'linux-arm-appimage-test' > dist/deployment-ci/gitcomet-v0.0.0-ci-linux-arm64.AppImage | |
| printf 'linux-appimage-test' > dist/deployment-ci/gitcomet-v0.0.0-ci-linux-x86_64.AppImage | |
| scripts/generate-homebrew-cask.sh \ | |
| --version "0.0.0-ci" \ | |
| --github-repo "Auto-Explore/GitComet" \ | |
| --linux-arm-appimage "dist/deployment-ci/gitcomet-v0.0.0-ci-linux-arm64.AppImage" \ | |
| --linux-intel-appimage "dist/deployment-ci/gitcomet-v0.0.0-ci-linux-x86_64.AppImage" \ | |
| --output "dist/deployment-ci/gitcomet.rb" | |
| ruby -c dist/deployment-ci/gitcomet.rb | |
| grep -q 'cask "gitcomet" do' dist/deployment-ci/gitcomet.rb | |
| grep -q 'os linux: "linux"' dist/deployment-ci/gitcomet.rb | |
| grep -q 'on_linux do' dist/deployment-ci/gitcomet.rb | |
| grep -q 'container type: :naked' dist/deployment-ci/gitcomet.rb | |
| grep -q 'binary "gitcomet-v#{version}-linux-#{arch}.AppImage", target: "gitcomet"' dist/deployment-ci/gitcomet.rb | |
| grep -q 'gitcomet-v#{version}-linux-#{arch}.AppImage' dist/deployment-ci/gitcomet.rb | |
| if grep -qi 'macos\|\.dmg\|GitComet.app' dist/deployment-ci/gitcomet.rb; then | |
| echo "::error title=Unexpected macOS cask content::The Homebrew cask must be Linux-only." | |
| exit 1 | |
| fi | |
| - name: Validate Homebrew tap publish detection | |
| run: | | |
| set -euo pipefail | |
| rm -rf dist/deployment-ci/tap-repo | |
| git init --initial-branch=main dist/deployment-ci/tap-repo | |
| pushd dist/deployment-ci/tap-repo >/dev/null | |
| git config user.name "GitComet CI" | |
| git config user.email "ci@autoexplore.ai" | |
| echo "# Homebrew Tap" > README.md | |
| mkdir -p Formula | |
| cat > Formula/gitcomet.rb <<'RUBY' | |
| class Gitcomet < Formula | |
| desc "Legacy GitComet formula" | |
| homepage "https://example.com" | |
| url "https://example.com/gitcomet.tar.gz" | |
| sha256 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | |
| version "0.0.0" | |
| end | |
| RUBY | |
| cat > Formula/gitcomet-cli.rb <<'RUBY' | |
| class GitcometCli < Formula | |
| desc "Legacy GitComet CLI formula" | |
| homepage "https://example.com" | |
| url "https://example.com/gitcomet-cli.tar.gz" | |
| sha256 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" | |
| version "0.0.0" | |
| end | |
| RUBY | |
| git add README.md Formula/gitcomet.rb Formula/gitcomet-cli.rb | |
| git commit -m "Initial tap repo" | |
| mkdir -p Casks | |
| cp ../gitcomet.rb Casks/gitcomet.rb | |
| git add Casks/gitcomet.rb | |
| if git ls-files --error-unmatch Formula/gitcomet-cli.rb >/dev/null 2>&1; then | |
| git rm -f Formula/gitcomet-cli.rb | |
| fi | |
| if git ls-files --error-unmatch Formula/gitcomet.rb >/dev/null 2>&1; then | |
| git rm -f Formula/gitcomet.rb | |
| fi | |
| if git diff --cached --quiet -- Casks/gitcomet.rb Formula/gitcomet-cli.rb Formula/gitcomet.rb; then | |
| echo "Expected Homebrew cask publish and legacy formula removal to be detected as a change." | |
| exit 1 | |
| fi | |
| popd >/dev/null | |
| aur-metadata-smoke: | |
| name: Validate AUR metadata update script | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| container: | |
| image: archlinux:base-devel | |
| steps: | |
| - name: Install Arch packaging tooling | |
| run: | | |
| set -euo pipefail | |
| pacman -Sy --noconfirm --needed perl shadow | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Create non-root packaging user | |
| run: | | |
| set -euo pipefail | |
| id -u builder >/dev/null 2>&1 || useradd -m builder | |
| chown -R builder:builder "$GITHUB_WORKSPACE" | |
| - name: Prepare synthetic AUR repo and assets | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist/aur-ci/repo | |
| cat > dist/aur-ci/repo/PKGBUILD <<'EOF' | |
| pkgname=gitcomet | |
| pkgver=0.0.0 | |
| pkgrel=1 | |
| pkgdesc="Fast, resource-efficient Git GUI written in Rust" | |
| arch=('x86_64') | |
| url="https://gitcomet.dev/" | |
| license=('AGPL-3.0-only') | |
| depends=( | |
| 'fontconfig' | |
| 'freetype2' | |
| 'git' | |
| 'libx11' | |
| 'libxcb' | |
| 'libxkbcommon' | |
| 'wayland' | |
| ) | |
| source=( | |
| "gitcomet-v$pkgver-linux-x86_64.tar.gz::https://example.invalid/gitcomet-v$pkgver-linux-x86_64.tar.gz" | |
| "gitcomet-source-v$pkgver.tar.gz::https://example.invalid/gitcomet-source-v$pkgver.tar.gz" | |
| ) | |
| sha256sums=('oldbinary' | |
| 'oldsource') | |
| package() { | |
| install -D -m755 "gitcomet-v$pkgver-linux-x86_64/gitcomet" "$pkgdir/usr/bin/gitcomet" | |
| } | |
| EOF | |
| printf 'synthetic-binary' > dist/aur-ci/gitcomet-v0.0.0-linux-x86_64.tar.gz | |
| printf 'synthetic-source' > dist/aur-ci/gitcomet-source-v0.0.0.tar.gz | |
| chown -R builder:builder dist | |
| - name: Run update-aur.sh | |
| run: | | |
| set -euo pipefail | |
| su builder -c "cd '$GITHUB_WORKSPACE' && scripts/update-aur.sh \ | |
| --aur-dir '$GITHUB_WORKSPACE/dist/aur-ci/repo' \ | |
| --version 0.0.0 \ | |
| --binary-tar '$GITHUB_WORKSPACE/dist/aur-ci/gitcomet-v0.0.0-linux-x86_64.tar.gz' \ | |
| --source-tar '$GITHUB_WORKSPACE/dist/aur-ci/gitcomet-source-v0.0.0.tar.gz' \ | |
| --verify-source" | |
| - name: Validate generated PKGBUILD and .SRCINFO | |
| run: | | |
| set -euo pipefail | |
| test -f dist/aur-ci/repo/.SRCINFO | |
| grep -q '^pkgver=0.0.0$' dist/aur-ci/repo/PKGBUILD | |
| grep -q 'source = gitcomet-v0.0.0-linux-x86_64.tar.gz::https://example.invalid/gitcomet-v0.0.0-linux-x86_64.tar.gz$' dist/aur-ci/repo/.SRCINFO | |
| grep -q 'source = gitcomet-source-v0.0.0.tar.gz::https://example.invalid/gitcomet-source-v0.0.0.tar.gz$' dist/aur-ci/repo/.SRCINFO | |
| apt-repo-generation-smoke: | |
| name: Validate APT repo generation script | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Install Debian repo tooling | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y dpkg-dev gnupg | |
| - name: Build synthetic .debs | |
| run: | | |
| set -euo pipefail | |
| for architecture in amd64 arm64; do | |
| pkg_root="dist/apt-ci/pkg-${architecture}" | |
| mkdir -p "${pkg_root}/DEBIAN" "${pkg_root}/usr/bin" | |
| printf '%s\n' '#!/usr/bin/env bash' "echo \"GitComet CI ${architecture}\"" > "${pkg_root}/usr/bin/gitcomet" | |
| chmod +x "${pkg_root}/usr/bin/gitcomet" | |
| { | |
| echo "Package: gitcomet" | |
| echo "Version: 0.0.0~ci1" | |
| echo "Architecture: ${architecture}" | |
| echo "Maintainer: GitComet CI <ci@autoexplore.ai>" | |
| echo "Description: Synthetic GitComet package for deployment CI." | |
| } > "${pkg_root}/DEBIAN/control" | |
| dpkg-deb --build "${pkg_root}" "dist/apt-ci/gitcomet_0.0.0~ci1_${architecture}.deb" | |
| done | |
| - name: Generate temporary signing key | |
| env: | |
| GNUPGHOME: ${{ github.workspace }}/dist/apt-ci/gnupg | |
| run: | | |
| set -euo pipefail | |
| mkdir -p "$GNUPGHOME" | |
| chmod 700 "$GNUPGHOME" | |
| { | |
| echo "Key-Type: RSA" | |
| echo "Key-Length: 3072" | |
| echo "Name-Real: GitComet CI" | |
| echo "Name-Email: ci@autoexplore.ai" | |
| echo "Expire-Date: 0" | |
| echo "%no-protection" | |
| echo "%commit" | |
| } > dist/apt-ci/ci-gpg.batch | |
| gpg --batch --generate-key dist/apt-ci/ci-gpg.batch | |
| key_id="$(gpg --batch --list-secret-keys --with-colons | awk -F: '$1 == "sec" { print $5; exit }')" | |
| echo "APT_TEST_GPG_KEY_ID=$key_id" >> "$GITHUB_ENV" | |
| - name: Build signed APT repo | |
| env: | |
| GNUPGHOME: ${{ github.workspace }}/dist/apt-ci/gnupg | |
| APT_GPG_PASSPHRASE: ${{ secrets.APT_GPG_PASSPHRASE }} | |
| run: | | |
| set -euo pipefail | |
| scripts/build-apt-repo.sh \ | |
| --repo-dir dist/apt-ci/repo \ | |
| --deb dist/apt-ci/gitcomet_0.0.0~ci1_amd64.deb \ | |
| --deb dist/apt-ci/gitcomet_0.0.0~ci1_arm64.deb \ | |
| --distribution stable \ | |
| --component main \ | |
| --architecture amd64 \ | |
| --architecture arm64 \ | |
| --origin GitComet \ | |
| --label GitComet \ | |
| --description "GitComet deployment CI repository" \ | |
| --repo-url https://example.invalid/gitcomet/apt \ | |
| --gpg-passphrase "${APT_GPG_PASSPHRASE}" \ | |
| --signing-key "${APT_TEST_GPG_KEY_ID}" | |
| - name: Validate generated repo | |
| env: | |
| GNUPGHOME: ${{ github.workspace }}/dist/apt-ci/verify-gnupg | |
| run: | | |
| set -euo pipefail | |
| test -f dist/apt-ci/repo/dists/stable/main/binary-amd64/Packages | |
| test -f dist/apt-ci/repo/dists/stable/main/binary-amd64/Packages.gz | |
| test -f dist/apt-ci/repo/dists/stable/main/binary-arm64/Packages | |
| test -f dist/apt-ci/repo/dists/stable/main/binary-arm64/Packages.gz | |
| test -f dist/apt-ci/repo/dists/stable/InRelease | |
| test -f dist/apt-ci/repo/dists/stable/Release.gpg | |
| test -f dist/apt-ci/repo/gitcomet-archive-keyring.gpg | |
| test -f dist/apt-ci/repo/gitcomet.sources | |
| grep -q "^Package: gitcomet$" dist/apt-ci/repo/dists/stable/main/binary-amd64/Packages | |
| grep -q "^Filename: pool/main/g/gitcomet/gitcomet_0.0.0~ci1_amd64.deb$" dist/apt-ci/repo/dists/stable/main/binary-amd64/Packages | |
| grep -q "^Package: gitcomet$" dist/apt-ci/repo/dists/stable/main/binary-arm64/Packages | |
| grep -q "^Filename: pool/main/g/gitcomet/gitcomet_0.0.0~ci1_arm64.deb$" dist/apt-ci/repo/dists/stable/main/binary-arm64/Packages | |
| grep -q "^Architectures: amd64 arm64$" dist/apt-ci/repo/dists/stable/Release | |
| grep -q "^URIs: https://example.invalid/gitcomet/apt$" dist/apt-ci/repo/gitcomet.sources | |
| grep -q "^Architectures: amd64 arm64$" dist/apt-ci/repo/gitcomet.sources | |
| grep -q '^deb \[arch=amd64,arm64 signed-by=/usr/share/keyrings/gitcomet-archive-keyring.gpg\] https://example.invalid/gitcomet/apt stable main$' dist/apt-ci/repo/gitcomet.list | |
| mkdir -p "$GNUPGHOME" | |
| chmod 700 "$GNUPGHOME" | |
| gpg --batch --no-default-keyring --keyring dist/apt-ci/repo/gitcomet-archive-keyring.gpg --verify dist/apt-ci/repo/dists/stable/InRelease >/dev/null | |
| - name: Verify generated repo with apt-secure | |
| run: | | |
| set -euo pipefail | |
| repo_root="$(pwd)/dist/apt-ci/repo" | |
| source_dir="${RUNNER_TEMP}/gitcomet-apt-sources.d" | |
| lists_dir="${RUNNER_TEMP}/gitcomet-apt-lists" | |
| mkdir -p "$source_dir" | |
| sudo mkdir -p "${lists_dir}/partial" | |
| cat > "${source_dir}/gitcomet-ci.sources" <<EOF | |
| Types: deb | |
| URIs: file://${repo_root} | |
| Suites: stable | |
| Components: main | |
| Architectures: amd64 | |
| Signed-By: ${repo_root}/gitcomet-archive-keyring.gpg | |
| EOF | |
| sudo apt-get update \ | |
| -o Dir::Etc::sourcelist=/dev/null \ | |
| -o Dir::Etc::sourceparts="${source_dir}" \ | |
| -o Dir::State::lists="${lists_dir}" \ | |
| -o APT::Get::List-Cleanup=0 | |
| apt-cache policy gitcomet \ | |
| -o Dir::Etc::sourcelist=/dev/null \ | |
| -o Dir::Etc::sourceparts="${source_dir}" \ | |
| -o Dir::State::lists="${lists_dir}" \ | |
| | grep -q '0.0.0~ci1' |