From f5ecc957640d8ac0eb274b2706f974c4bdef6f2c Mon Sep 17 00:00:00 2001 From: Finn Voorhees Date: Mon, 11 Dec 2023 23:35:25 +0000 Subject: [PATCH] Auto-update hombrew --- .github/workflows/Release.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 379ce36..1f4097c 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: push: tags: - "*.*.*" @@ -8,15 +9,22 @@ on: jobs: release: runs-on: macos-13 + environment: Env steps: - uses: actions/checkout@v3 - - run: sudo xcode-select -s /Applications/Xcode_15.0.app - - name: Build - run: swift build -c release --arch arm64 --arch x86_64 --product xcc - - name: Compress - run: tar -czf ${{ github.ref_name }}.tar.gz -C .build/apple/Products/Release xcc - - name: Release - run: gh release create ${{ github.ref_name }} ${{ github.ref_name }}.tar.gz +# - run: sudo xcode-select -s /Applications/Xcode_15.0.app +# - name: Build +# run: swift build -c release --arch arm64 --arch x86_64 --product xcc +# - name: Compress +# run: tar -czf ${{ github.ref_name }}.tar.gz -C .build/apple/Products/Release xcc +# - name: Release +# run: gh release create ${{ github.ref_name }} ${{ github.ref_name }}.tar.gz +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: mislav/bump-homebrew-formula-action@v2 + with: + homebrew-tap: finnvoor/homebrew-tools + download-url: https://github.com/finnvoor/xcc/releases/download/${{ github.ref_name }}/${{ github.ref_name }}.tar.gz env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}