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 f5ecc95
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
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:
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 }}

0 comments on commit f5ecc95

Please sign in to comment.