|
1 | | -name: Deploy Docc |
| 1 | +name: Deploy DocC |
2 | 2 | on: |
3 | 3 | workflow_dispatch: # Allow manual runs |
4 | 4 | push: |
|
8 | 8 | - BrowserKit/Sources/ComponentLibrary/** |
9 | 9 | - .github/workflows/firefox-ios-publish-docc.yml |
10 | 10 |
|
11 | | -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
12 | 11 | permissions: |
13 | 12 | contents: read |
14 | 13 | pages: write |
15 | | - id-token: write |
| 14 | + id-token: write # Uses GitHub API to get GitHub Pages configuration outputs |
16 | 15 |
|
17 | | -# Allow one concurrent deployment |
18 | 16 | concurrency: |
19 | 17 | group: github-pages |
20 | | - cancel-in-progress: true |
| 18 | + cancel-in-progress: true # Allow just the most recent deployment |
21 | 19 |
|
22 | 20 | 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"] |
25 | 26 | environment: |
26 | | - # Must be set to this for deploying to GitHub Pages |
27 | 27 | name: github-pages |
28 | 28 | url: ${{ steps.deployment.outputs.page_url }} |
29 | | - runs-on: macos-15 |
30 | | - env: |
31 | | - XCODE: '26.0' |
32 | 29 | steps: |
33 | | - - name: Switch to Xcode ${{env.XCODE}} |
| 30 | + - name: Switch to Xcode ${{ matrix.xcode }} |
34 | 31 | uses: maxim-lobanov/setup-xcode@v1 |
35 | 32 | with: |
36 | | - xcode-version: ${{env.XCODE}} |
| 33 | + xcode-version: ${{ matrix.xcode }} |
37 | 34 | - name: Checkout |
38 | | - uses: actions/checkout@v4 |
| 35 | + uses: actions/checkout@v5 |
39 | 36 | - name: Build DocC |
40 | 37 | run: | |
41 | 38 | xcodebuild docbuild -project firefox-ios/Client.xcodeproj \ |
|
47 | 44 | --hosting-base-path "firefox-ios" \ |
48 | 45 | --output-path docs; |
49 | 46 | 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 |
52 | 49 | with: |
53 | 50 | # Upload only docs directory |
54 | 51 | path: 'docs' |
|
0 commit comments