Add release pipeline, custom repo manifest, and pre-push linter
First release-ready cycle for Forgeimizer. Bumps the version to 0.1.0, introduces the Hellion Forge custom repo distribution path, and wires up the HellionChat-style pre-push lint gate. Version: - csproj <Version> 2.9.1.1 → 0.1.0. Forgeimizer adopts its own SemVer line starting at 0.1.0; the upstream Craftimizer 2.9.1.1 base is documented in the manifest description, CHANGELOG, README, and NOTICE for each release. Release pipeline (.gitea/workflows/): - build.yml on push/PR/dispatch: downloads Dalamud staging, dotnet restore + build of Craftimizer/Craftimizer.csproj. Fails the workflow if the plugin no longer compiles against current SDK 15. - release.yml on v*-tag + dispatch: builds Release, locates the packager-produced latest.zip under Craftimizer/bin/x64/Release/, extracts the matching ## vX.Y.Z block from CHANGELOG.md via awk, appends .gitea/release-footer.md, and attaches everything to the Gitea release via gitea.com/actions/release-action. - release-footer.md: install path with the custom-repo URL, conflict notice, attribution to Asriel Camora, MIT licence reference, Hellion Forge footer. - security.yml: references the shared JonKazama-Hellion/security-workflows/security-scan.yml@main workflow (Semgrep + Trivy) on push/PR + weekly Monday schedule + dispatch. Custom Dalamud repo manifest: - repo.json at the repo root. AssemblyVersion 0.1.0.0, TestingAssemblyVersion 0.1.0.0, all three DownloadLink* pointing at releases/download/v0.1.0/latest.zip, embedded Changelog block, full description, tag list, icon and image URLs hosted off the Hellion Gitea. Subscribers add the raw URL of this file to Dalamud's Custom Plugin Repositories list. Linter tooling: - dotnet-tools.json with csharpier 1.2.6 as a local tool. - .markdownlint.json copied from HellionChat (atx headers, dash bullets, underscore italics, asterisk strong) with MD060 disabled for our long-cell tables. - renovate.json adapted from HellionChat: weekly schedule, grouped minor/patch updates per ecosystem, major updates get their own breaking-change PR, weekly lock file refresh, OSV vulnerability alerts. Pre-push lint gate (.githooks/ + scripts/): - .githooks/pre-push runs scripts/preflight.sh. - preflight.sh: 4 blocks A (version consistency), B (dotnet build), C (dotnet csharpier check Craftimizer/), D (markdownlint via npx). - verify-version-consistency.sh: csproj <Version> matches repo.json AssemblyVersion + TestingAssemblyVersion + a vX.Y.Z tag string is present in all three DownloadLink* URLs. Block A fails loud with a Fix: hint if anything drifts. - setup-hooks.sh: sets core.hooksPath to .githooks, chmod +x the scripts. Run once after cloning. CHANGELOG: - New CHANGELOG.md at the repo root. First entry is v0.1.0 with the Hellion-style block (date, summary, bullet list, upstream-base attribution, full-history link). The release workflow extracts this entry verbatim as the Gitea release body. Docs: - README header updated with the new version badge, a release badge, and a build badge. New CHANGELOG reference, slash-command table, install section with both custom-repo and dev-install paths, conflict notice paragraph. Plugin Version 0.1.0 stays in line with the verify-version-consistency check; tag v0.1.0 is intentionally NOT pushed in this commit. Once the user enables Gitea Actions on the repo, push the tag separately to trigger the first release build.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
# preflight.sh — pre-push gate. Block A verifies that csproj and repo.json
|
||||
# agree on the version and tag URLs. Block B does a headless `dotnet build`
|
||||
# to catch compile-time API drift. Block C runs `dotnet csharpier check`
|
||||
# against Craftimizer/. Block D runs markdownlint against repo *.md files.
|
||||
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
echo "==> preflight: Block A — version consistency"
|
||||
./scripts/verify-version-consistency.sh
|
||||
|
||||
echo "==> preflight: Block B — plugin compile health"
|
||||
dotnet build Craftimizer/Craftimizer.csproj --configuration Release --nologo --verbosity quiet
|
||||
|
||||
echo "==> preflight: Block C — csharpier reflow check"
|
||||
dotnet csharpier check Craftimizer/
|
||||
|
||||
echo "==> preflight: Block D — markdownlint"
|
||||
# npx --yes avoids a global install; first run caches into ~/.npm/_npx/.
|
||||
# Subsequent runs are sub-second.
|
||||
npx --yes markdownlint-cli2 "**/*.md" "#node_modules" "#bin" "#obj" "#.claude" "#CLAUDE.md"
|
||||
|
||||
echo "==> preflight: ALL GREEN"
|
||||
Reference in New Issue
Block a user