mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:29:40 +01:00
Move to GitHub: CI, release workflow and script; cursor and hover states
- ci.yml checks frontend types and build, core tests and that app and CLI compile on every push and pull request - release.yml publishes a GitHub release with notes and checksums for tags; scripts/release.sh bumps the version everywhere, tags and pushes - The Gitea workflow is gone; PKGBUILDs download from GitHub - Every clickable element shows the pointer and has a hover state; disabled controls show not-allowed - Dev-only fake backend (open the dev server with ?mock) for design work - README: docs link, install per platform, development, releasing
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
name: release
|
||||
|
||||
# Runs on the GitHub mirror only (Gitea uses .gitea/workflows). macOS and
|
||||
# Windows minutes are expensive on private repositories, so this runs for
|
||||
# tags and on demand, not on every push.
|
||||
# Push a tag vX.Y.Z (scripts/release.sh does it) and this builds every
|
||||
# platform and publishes a GitHub release. Manual runs build without
|
||||
# releasing; pick platforms to save macOS and Windows minutes.
|
||||
on:
|
||||
push:
|
||||
tags: ['v*']
|
||||
@@ -129,13 +129,21 @@ jobs:
|
||||
- uses: actions/download-artifact@v5
|
||||
with:
|
||||
path: artifacts
|
||||
- name: Attach to the GitHub release
|
||||
merge-multiple: true
|
||||
- name: Checksums
|
||||
run: |
|
||||
cd artifacts
|
||||
sha256sum * > SHA256SUMS
|
||||
cat SHA256SUMS
|
||||
- name: Publish release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
pre=""
|
||||
case "$TAG" in *-*) pre="--prerelease";; esac
|
||||
gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1 \
|
||||
|| gh release create "$TAG" -R "$GITHUB_REPOSITORY" --title "$TAG" --notes "" $pre
|
||||
find artifacts -type f -exec gh release upload "$TAG" -R "$GITHUB_REPOSITORY" --clobber {} +
|
||||
if gh release view "$TAG" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
|
||||
gh release upload "$TAG" -R "$GITHUB_REPOSITORY" --clobber artifacts/*
|
||||
else
|
||||
gh release create "$TAG" -R "$GITHUB_REPOSITORY" --title "knock ${TAG#v}" --generate-notes $pre artifacts/*
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user