Skip to content

Commit

Permalink
Auto-update hombrew
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Dec 11, 2023
1 parent e1aa0a3 commit a66f14b
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
name: Release

on:
workflow_dispatch:
push:
tags:
- "*.*.*"

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:
formula-name: xcc
homebrew-tap: finnvoor/homebrew-tools
base-branch: main
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 }}

0 comments on commit a66f14b

Please sign in to comment.