fix: release workflow fixes and version bump to 0.2.4
- Fix AUR mcl-launcher-bin package path for dist tarballs - Fix WinGet manifest validation by removing leftover sha256 file - Use RELEASE_TOKEN for homebrew tap access - Restore git-cliff changelog in GitHub releases - Remove shell/powershell installer scripts from dist config
This commit is contained in:
1 parent
6d6e67bbba
commit
b4b1b0ffca
6 files changed
+144
-55
No files matched your search
@@ -90,6 +90,8 @@ jobs:
|
||||
"@
|
||||
$localeManifest | Set-Content -Path "$packagePath/$identifier.locale.en-US.yaml" -Encoding utf8
|
||||
|
||||
Remove-Item "$packagePath/$checksumFile"
|
||||
|
||||
"path=$packagePath" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: submit WinGet manifest
|
||||
|
||||
@@ -234,6 +234,8 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
- name: Install cached dist
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
@@ -271,15 +273,21 @@ jobs:
|
||||
run: |
|
||||
# Remove the granular manifests
|
||||
rm -f artifacts/*-dist-manifest.json
|
||||
- name: Generate changelog
|
||||
id: changelog
|
||||
uses: orhun/git-cliff-action@v4
|
||||
with:
|
||||
args: --latest --strip header
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create GitHub Release
|
||||
env:
|
||||
PRERELEASE_FLAG: "${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"
|
||||
ANNOUNCEMENT_TITLE: "${{ fromJson(steps.host.outputs.manifest).announcement_title }}"
|
||||
ANNOUNCEMENT_BODY: "${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}"
|
||||
RELEASE_COMMIT: "${{ github.sha }}"
|
||||
CHANGELOG: "${{ steps.changelog.outputs.content }}"
|
||||
run: |
|
||||
# Write and read notes from a file to avoid quoting breaking things
|
||||
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
|
||||
echo "$CHANGELOG" > $RUNNER_TEMP/notes.txt
|
||||
|
||||
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
|
||||
|
||||
@@ -299,7 +307,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: true
|
||||
repository: "objz/homebrew-tap"
|
||||
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
# So we have access to the formula
|
||||
- name: Fetch homebrew formulae
|
||||
uses: actions/download-artifact@v7
|
||||
|
||||
Reference in new issue
Block a user