Publish the macOS package as a rolling pre-release instead of an artifact
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
24ee743053
commit
6d70a48be8
1 file changed
+12
-7
@@ -12,7 +12,7 @@ on:
|
||||
- 'docs/release/dreierpack/**'
|
||||
- '.github/workflows/dreierpack-macos.yml'
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write # publishes the package as a pre-release of this repository
|
||||
concurrency:
|
||||
group: dreierpack-macos-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -53,9 +53,14 @@ jobs:
|
||||
"$out/Dreierpack" --version
|
||||
otool -L "$out/Dreierpack"
|
||||
(cd dist && ditto -c -k --keepParent "Dreierpack-Manager-macos-arm64" "Dreierpack-Manager-macos-arm64.zip")
|
||||
- name: Upload the package
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
name: Dreierpack-Manager-macos-arm64
|
||||
path: dist/Dreierpack-Manager-macos-arm64.zip
|
||||
if-no-files-found: error
|
||||
- name: Publish the package as the rolling development pre-release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
tag="dreierpack-dev-macos"
|
||||
gh release delete "$tag" --cleanup-tag --yes --repo "$GITHUB_REPOSITORY" || true
|
||||
gh release create "$tag" dist/Dreierpack-Manager-macos-arm64.zip \
|
||||
--repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --prerelease \
|
||||
--title "Dreierpack Manager · Entwicklungsstand macOS (Apple Silicon)" \
|
||||
--notes "Automatisch gebaut aus ${GITHUB_SHA} (${GITHUB_REF_NAME}). Programm und Oberfläche ohne Spielwelt und ohne Bildressourcen; siehe LIESMICH.txt im Paket. Nicht bei Apple beglaubigt: nach dem Entpacken einmalig xattr -dr com.apple.quarantine auf den Ordner anwenden."
|
||||
Reference in new issue
Block a user