Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@ jobs:
( cd publish/WitcherScriptMerger.Headless-win-x64 && zip -r "../../dist/WitcherScriptMerger.Headless-${RELEASE_VERSION}-win-x64.zip" . )
( cd publish/WitcherScriptMerger.Headless-linux-x64 && tar -czf "../../dist/WitcherScriptMerger.Headless-${RELEASE_VERSION}-linux-x64.tar.gz" . )

# --repo is required here: this job never checks out the repo (it only downloads
# build artifacts from earlier jobs), so gh has no local git context to
# auto-detect the target repository from - confirmed by the first real run of
# this workflow (tag v0.6.2) failing with "failed to run git: fatal: not a git
# repository (or any of the parent directories): .git" on exactly this step.
# $GITHUB_REPOSITORY (a built-in Actions env var, "owner/repo") sidesteps that
# without needing an actions/checkout step just for this. Same class of mistake
# this repo's own CLAUDE.md already warns about for `gh pr create` run without
# --repo/--base - explicit is required, not optional, for any `gh` invocation
# that can't infer its target from a real git working directory.
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -224,5 +234,6 @@ jobs:
"dist/WitcherScriptMerger-${RELEASE_VERSION}-win-x64.zip" \
"dist/WitcherScriptMerger.Headless-${RELEASE_VERSION}-win-x64.zip" \
"dist/WitcherScriptMerger.Headless-${RELEASE_VERSION}-linux-x64.tar.gz" \
--repo "$GITHUB_REPOSITORY" \
--title "$GITHUB_REF_NAME" \
--generate-notes
Loading