Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 4788de6

Browse files
committed
Use SwiftDocOrg/update-homebrew-formula
1 parent f26644f commit 4788de6

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ jobs:
7373
asset_name: swift-doc-${{ github.event.release.tag_name }}.linux.bottle.tar.gz
7474
asset_content_type: application/gzip
7575

76+
homebrew:
77+
name: Update Homebrew formula
78+
runs-on: ubuntu-latest
79+
needs: [macos, linux]
80+
steps:
81+
- uses: SwiftDocOrg/update-homebrew-formula@main
82+
with:
83+
repository: SwiftDocOrg/swift-doc
84+
tap: SwiftDocOrg/homebrew-formulae
85+
formula: Formula/swift-doc.rb
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
7689
docker:
7790
name: Build and push Docker container
7891

@@ -102,19 +115,3 @@ jobs:
102115
tags: |
103116
swiftdoc/swift-doc:latest
104117
swiftdoc/swift-doc:${{ github.event.release.tag_name }}
105-
106-
homebrew:
107-
name: Update Homebrew formula
108-
runs-on: ubuntu-latest
109-
needs: [macos, linux]
110-
steps:
111-
- uses: mislav/bump-homebrew-formula-action@v1
112-
with:
113-
formula-name: swift-doc
114-
homebrew-tap: SwiftDocOrg/homebrew-formulae
115-
base-branch: master
116-
download-url: https://github.com/SwiftDocOrg/swift-doc/archive/${{ github.event.release.tag_name }}.tar.gz
117-
commit-message: "Update formula swift-doc to ${{ github.event.release.tag_name }}"
118-
env:
119-
COMMITTER_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
120-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)