-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |