mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-25 18:44:53 +03:00
Add CD action to update Homebrew formula
This commit is contained in:
parent
c97335435a
commit
0e3dfa4c42
18
.github/workflows/cd.yml
vendored
18
.github/workflows/cd.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -39,7 +39,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rustup target add x86_64-unknown-linux-musl
|
rustup target add x86_64-unknown-linux-musl
|
||||||
sudo apt-get -qq install musl-tools
|
sudo apt-get -qq install musl-tools
|
||||||
|
|
||||||
- name: Build Release Mac
|
- name: Build Release Mac
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: make release-mac
|
run: make release-mac
|
||||||
@ -71,13 +71,21 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Bump Brew
|
- name: Bump extrawurst/homebrew-tap formula
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
env:
|
env:
|
||||||
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }}
|
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
brew tap extrawurst/tap
|
brew tap extrawurst/tap
|
||||||
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \
|
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \
|
||||||
--sha256=${{ steps.shasum.outputs.sha }} \
|
--sha256=${{ steps.shasum.outputs.sha }} \
|
||||||
--url="https://github.com/extrawurst/gitui/releases/download/${{ steps.get_version.outputs.version }}/gitui-mac.tar.gz" \
|
--url="https://github.com/extrawurst/gitui/releases/download/${{ steps.get_version.outputs.version }}/gitui-mac.tar.gz" \
|
||||||
extrawurst/tap/gitui
|
extrawurst/tap/gitui
|
||||||
|
|
||||||
|
- name: Bump homebrew-core formula
|
||||||
|
uses: mislav/bump-homebrew-formula-action@v1
|
||||||
|
if: "matrix.os == 'macos-latest' && !contains(github.ref, '-')" # skip prereleases
|
||||||
|
env:
|
||||||
|
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
|
||||||
|
with:
|
||||||
|
formula-name: gitui
|
||||||
|
Loading…
Reference in New Issue
Block a user