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

Commit debe221

Browse files
committed
Update formula with bottles in separate job
1 parent d3cf2d7 commit debe221

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ jobs:
3737
asset_path: ./swift-doc--${{ github.event.release.tag_name }}.catalina.bottle.tar.gz
3838
asset_name: swift-doc-${{ github.event.release.tag_name }}.catalina.bottle.tar.gz
3939
asset_content_type: application/gzip
40-
- name: Update the Homebrew formula again with bottle
41-
uses: NSHipster/update-homebrew-formula-action@main
42-
with:
43-
repository: SwiftDocOrg/swift-doc
44-
tap: SwiftDocOrg/homebrew-formulae
45-
formula: Formula/swift-doc.rb
46-
message: |
47-
Add bottle for swift-doc ${{ github.event.release.tag_name }}
48-
on macOS 10.15 (Catalina)
49-
env:
50-
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
5140

5241
bottle_macos_big_sur:
5342
name: Build and distribute Homebrew bottle for macOS Big Sur
@@ -68,15 +57,22 @@ jobs:
6857
asset_path: ./swift-doc--${{ github.event.release.tag_name }}.big_sur.bottle.tar.gz
6958
asset_name: swift-doc-${{ github.event.release.tag_name }}.big_sur.bottle.tar.gz
7059
asset_content_type: application/gzip
71-
- name: Update the Homebrew formula again with bottle
72-
uses: NSHipster/update-homebrew-formula-action@main
60+
61+
update_formula_bottle:
62+
name: Update the Homebrew formula again with bottle
63+
runs-on: ubuntu-latest
64+
needs:
65+
- bottle_macos_catalina
66+
- bottle_macos_big_sur
67+
steps:
68+
- uses: NSHipster/update-homebrew-formula-action@main
7369
with:
7470
repository: SwiftDocOrg/swift-doc
7571
tap: SwiftDocOrg/homebrew-formulae
7672
formula: Formula/swift-doc.rb
7773
message: |
78-
Add bottle for swift-doc ${{ github.event.release.tag_name }}
79-
on macOS 11.0 (Big Sur)
74+
Add bottles for swift-doc ${{ github.event.release.tag_name }}
75+
on macOS 10.15 (Catalina) and macOS 11.0 (Big Sur)
8076
env:
8177
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
8278

0 commit comments

Comments
 (0)