Skip to content

Commit 42eae83

Browse files
janbrasnaclarmso
andauthored
Refactor FXIOS-13509 [GHA] Use Xcode 16.4 for ComponentLibrary publishing workflow (#29367)
* Update firefox-ios-publish-docc actions versions * Use Xcode 16.4 for docs site CI * Use matrix for consistency * Tweak naming for logs --------- Co-authored-by: Clare So <[email protected]>
1 parent 93aaa01 commit 42eae83

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/firefox-ios-publish-docc.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Docc
1+
name: Deploy DocC
22
on:
33
workflow_dispatch: # Allow manual runs
44
push:
@@ -8,34 +8,31 @@ on:
88
- BrowserKit/Sources/ComponentLibrary/**
99
- .github/workflows/firefox-ios-publish-docc.yml
1010

11-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1211
permissions:
1312
contents: read
1413
pages: write
15-
id-token: write
14+
id-token: write # Uses GitHub API to get GitHub Pages configuration outputs
1615

17-
# Allow one concurrent deployment
1816
concurrency:
1917
group: github-pages
20-
cancel-in-progress: true
18+
cancel-in-progress: true # Allow just the most recent deployment
2119

2220
jobs:
23-
# Single deploy job since we're just deploying
24-
deploy:
21+
docs:
22+
runs-on: macos-15
23+
strategy:
24+
matrix:
25+
xcode: ["16.4"]
2526
environment:
26-
# Must be set to this for deploying to GitHub Pages
2727
name: github-pages
2828
url: ${{ steps.deployment.outputs.page_url }}
29-
runs-on: macos-15
30-
env:
31-
XCODE: '26.0'
3229
steps:
33-
- name: Switch to Xcode ${{env.XCODE}}
30+
- name: Switch to Xcode ${{ matrix.xcode }}
3431
uses: maxim-lobanov/setup-xcode@v1
3532
with:
36-
xcode-version: ${{env.XCODE}}
33+
xcode-version: ${{ matrix.xcode }}
3734
- name: Checkout
38-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3936
- name: Build DocC
4037
run: |
4138
xcodebuild docbuild -project firefox-ios/Client.xcodeproj \
@@ -47,8 +44,8 @@ jobs:
4744
--hosting-base-path "firefox-ios" \
4845
--output-path docs;
4946
echo "<script>window.location.href += \"/documentation/componentlibrary\"</script>" > docs/index.html;
50-
- name: Upload artifact
51-
uses: actions/upload-pages-artifact@v3
47+
- name: Store docs artifact
48+
uses: actions/upload-pages-artifact@v4
5249
with:
5350
# Upload only docs directory
5451
path: 'docs'

0 commit comments

Comments
 (0)