From 6d9a0d7516c90d7214eb570cc6554d9b3cdc25f3 Mon Sep 17 00:00:00 2001 From: SuperDooper <37051355+superdooper86@users.noreply.github.com> Date: Thu, 10 Sep 2026 09:08:56 +0200 Subject: [PATCH] Retire GitHub workflow after successful Gitea release --- .github/workflows/release-beta.yml | 79 ------------------------------ 1 file changed, 79 deletions(-) delete mode 100644 .github/workflows/release-beta.yml diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml deleted file mode 100644 index 09f4c4b..0000000 --- a/.github/workflows/release-beta.yml +++ /dev/null @@ -1,79 +0,0 @@ -name: Release Beta - -on: - push: - tags: - - 'v*-beta*' - -jobs: - release-beta: - runs-on: macos-latest - permissions: - contents: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Get version from tag - id: version - run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT - - - name: Build - run: | - xcodebuild \ - -project ClaudeChecker.xcodeproj \ - -scheme ClaudeChecker \ - -configuration Release \ - -derivedDataPath build \ - clean build - - - name: Zip app - run: | - ditto -c -k --keepParent \ - build/Build/Products/Release/ClaudeChecker.app \ - ClaudeChecker.zip - - - name: Create GitHub pre-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release create "$GITHUB_REF_NAME" ClaudeChecker.zip \ - --title "$GITHUB_REF_NAME" \ - --prerelease \ - --notes "$(cat RELEASE_NOTES.md 2>/dev/null || echo 'Beta release ${{ steps.version.outputs.version }}')" - - - name: Update version-beta.json - run: | - notes=$(cat RELEASE_NOTES.md 2>/dev/null || echo "Beta release ${{ steps.version.outputs.version }}") - jq -n \ - --arg version "${{ steps.version.outputs.version }}" \ - --arg url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ClaudeChecker.zip" \ - --arg notes "$notes" \ - '{version: $version, url: $url, notes: $notes}' > version-beta.json - - - name: Update beta badge in README - run: | - shields_version=$(echo "${{ steps.version.outputs.version }}" | sed 's/-/--/g') - tag="${{ github.ref_name }}" - export BADGE="[![Beta](https://img.shields.io/badge/beta-${shields_version}-orange?style=flat)](https://github.com/${{ github.repository }}/releases/tag/${tag}) " - python3 -c " - import os - badge = os.environ['BADGE'] - lines = open('README.md').readlines() - out = [] - for line in lines: - out.append(badge + chr(10) if '' in line else line) - open('README.md', 'w').writelines(out) - " - - - name: Commit version-beta.json and README - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add version-beta.json README.md - git commit -m "Beta release ${{ github.ref_name }}" - git pull --rebase origin main - git push origin HEAD:main