refactor(repo): move the platform READMEs, contributing guides and old CI files under docs/ (pure move)

komorebi-for-kde/README.md, CONTRIBUTING.md      -> docs/linux/
komorebi-for-mac/README.md, CONTRIBUTING.md      -> docs/macos/
komorebi-for-kde/.github/*                       -> docs/dev/old-ci/linux/
komorebi-for-mac/.github/*, mkdocs.yml, check_schema_docs.py, dependencies.json,
formula.template.rb                              -> docs/dev/old-ci/macos/

The CI workflows, dependabot files, issue templates, the macOS Homebrew formula template and
docs-site configuration of the two old repositories are kept for the CI and release plan
that follows (one workflow set, one release); under docs/ GitHub ignores them, as it did
under the subdirectories, so no KDE or macOS workflow runs on this branch. Renames only (19
files); the Windows .github and files at the root are untouched.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent 73c43239b5
commit 4653986f0e
19 files changed

No files matched your search

+99
View File
@@ -0,0 +1,99 @@
# Adapted from https://github.com/rust-lang/rustup/blob/master/.github/workflows/windows-builds-on-master.yaml
name: nix
on:
pull_request:
branches:
- "*"
push:
branches:
- master
- feature/*
- hotfix/*
tags:
- v*
schedule:
- cron: "30 0 * * 0" # Every day at 00:30 UTC
workflow_dispatch:
jobs:
build:
if: github.repository == 'KomoCorp/komorebi-for-mac'
runs-on: self-hosted
permissions: write-all
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- run: nix flake check
- run: nix build
- uses: actions/upload-artifact@v6
with:
name: komorebi-aarch64-apple-darwin-${{ github.sha }}
path: |
result/bin/komorebi*
retention-days: 14
- if: ${{ github.ref == 'refs/heads/master' }}
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.GH_USER_API_TOKEN }}
gist_id: 78b3dd12a7b7069f1d1c60621fe50730
file_path: schema.json
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
run: echo "VERSION=nightly" >> $GITHUB_ENV
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
run: |
zip -j komorebi-${VERSION}-aarch64-apple-darwin.zip result/bin/*
echo "$(sha256sum komorebi-${VERSION}-aarch64-apple-darwin.zip | cut -d' ' -f1) komorebi-${VERSION}-aarch64-apple-darwin.zip" > checksums.txt
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
run: |
git tag -d nightly || true
git tag nightly
kokai release --no-emoji --add-links github:commits,issues --ref nightly >"CHANGELOG.md"
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
shell: bash
run: |
gh release delete nightly --yes || true
git push origin :nightly || true
gh release create nightly \
--target $GITHUB_SHA \
--prerelease \
--title "komorebi for Mac nightly (${GITHUB_SHA})" \
--notes-file CHANGELOG.md \
komorebi-nightly-aarch64-apple-darwin.zip \
checksums.txt
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
shell: bash
run: |
ASSET_ID=$(gh api repos/${{ github.repository }}/releases/tags/nightly \
--jq '.assets[] | select(.name=="komorebi-nightly-aarch64-apple-darwin.zip") | .id')
SHA256=$(cat checksums.txt | cut -d' ' -f1)
echo "ASSET_ID=$ASSET_ID" >> $GITHUB_ENV
echo "SHA256=$SHA256" >> $GITHUB_ENV
echo "Asset ID: $ASSET_ID"
echo "SHA256: $SHA256"
- if: ${{ github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ) }}
shell: bash
env:
GIT_AUTHOR_NAME: "JeezyBot"
GIT_AUTHOR_EMAIL: "lgug2z@fastmail.com"
GIT_COMMITTER_NAME: "JeezyBot"
GIT_COMMITTER_EMAIL: "lgug2z@fastmail.com"
run: |
sed "s/REPLACE_ASSET_ID/$ASSET_ID/g; s/REPLACE_SHA_256/$SHA256/g; s/REPLACE_NIGHTLY/0.1.0-nightly-$(date +%Y-%m-%d-%H:%M:%S)/g" formula.template.rb > komorebi-for-mac-nightly.rb
cat komorebi-for-mac-nightly.rb
gh release upload nightly komorebi-for-mac-nightly.rb
git clone https://x-access-token:${{ secrets.GH_USER_API_TOKEN }}@github.com/LGUG2Z/homebrew-tap
cd homebrew-tap
cp ../komorebi-for-mac-nightly.rb ./Formula
git add .
git commit -m "Update komorebi-for-mac-nightly to $ASSET_ID ($SHA256)"
git push
@@ -0,0 +1,97 @@
name: release
on:
workflow_dispatch:
inputs:
tag:
description: 'Git tag to release (e.g. v1.0.0)'
required: true
type: string
jobs:
release:
if: github.repository == 'KomoCorp/komorebi-for-mac'
runs-on: self-hosted
permissions: write-all
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Verify tag exists on both repos at the same commit
env:
GH_TOKEN: ${{ secrets.GH_USER_API_TOKEN }}
shell: bash
run: |
PRIVATE_REF=$(gh api "repos/KomoCorp/komorebi-for-mac/git/ref/tags/${{ inputs.tag }}")
PRIVATE_TYPE=$(echo "$PRIVATE_REF" | jq -r '.object.type')
PRIVATE_SHA=$(echo "$PRIVATE_REF" | jq -r '.object.sha')
if [ "$PRIVATE_TYPE" = "tag" ]; then
PRIVATE_SHA=$(gh api "repos/KomoCorp/komorebi-for-mac/git/tags/$PRIVATE_SHA" | jq -r '.object.sha')
fi
PUBLIC_REF=$(gh api "repos/LGUG2Z/komorebi-for-mac/git/ref/tags/${{ inputs.tag }}")
PUBLIC_TYPE=$(echo "$PUBLIC_REF" | jq -r '.object.type')
PUBLIC_SHA=$(echo "$PUBLIC_REF" | jq -r '.object.sha')
if [ "$PUBLIC_TYPE" = "tag" ]; then
PUBLIC_SHA=$(gh api "repos/LGUG2Z/komorebi-for-mac/git/tags/$PUBLIC_SHA" | jq -r '.object.sha')
fi
echo "Private repo (KomoCorp) commit: $PRIVATE_SHA"
echo "Public repo (LGUG2Z) commit: $PUBLIC_SHA"
if [ "$PRIVATE_SHA" != "$PUBLIC_SHA" ]; then
echo "ERROR: Tag ${{ inputs.tag }} points to different commits on private and public repos"
exit 1
fi
echo "TAG_COMMIT=$PRIVATE_SHA" >> $GITHUB_ENV
echo "Verified: both repos have ${{ inputs.tag }} at $PRIVATE_SHA"
- uses: actions/checkout@v5
with:
ref: ${{ inputs.tag }}
fetch-depth: 0
- run: nix flake check
- run: nix build
- name: Package artifacts
shell: bash
run: |
VERSION=${{ inputs.tag }}
zip -j komorebi-${VERSION}-aarch64-apple-darwin.zip result/bin/*
echo "$(sha256sum komorebi-${VERSION}-aarch64-apple-darwin.zip | cut -d' ' -f1) komorebi-${VERSION}-aarch64-apple-darwin.zip" > checksums.txt
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Generate changelog
shell: bash
run: |
kokai release --no-emoji --add-links github:commits,issues --ref ${{ inputs.tag }} > CHANGELOG.md
- uses: actions/upload-artifact@v6
with:
name: komorebi-aarch64-apple-darwin-${{ inputs.tag }}
path: |
result/bin/komorebi*
retention-days: 14
- name: Create release on private repo (KomoCorp)
shell: bash
run: |
gh release create ${{ inputs.tag }} \
--repo KomoCorp/komorebi-for-mac \
--title "komorebi for Mac ${{ inputs.tag }}" \
--notes-file CHANGELOG.md \
komorebi-${{ inputs.tag }}-aarch64-apple-darwin.zip \
checksums.txt
- name: Create release on public repo (LGUG2Z)
env:
GH_TOKEN: ${{ secrets.GH_USER_API_TOKEN }}
shell: bash
run: |
gh release create ${{ inputs.tag }} \
--repo LGUG2Z/komorebi-for-mac \
--title "komorebi for Mac ${{ inputs.tag }}" \
--notes-file CHANGELOG.md \
komorebi-${{ inputs.tag }}-aarch64-apple-darwin.zip \
checksums.txt