Skip to content

Commit

Permalink
More readable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 17, 2023
1 parent 79b7089 commit 3ffb0f0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ env:
LANGUAGE: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
SCHEME: "AccessibilityDocumentation"
SCHEME_LOWERCASED: "accessibilitydocumentation"
XCODE_VERSION: '~>15'
DERIVED_DATA_PATH: './DerivedData/'
DESTINATION: 'generic/platform=iOS'
HOSTING_BASE_PATH: 'AccessibilityDocumentation'
OUTPUT_URL: 'https://vodgroup.github.io/AccessibilityDocumentation/documentation/accessibilitydocumentation/'
ARTEFACT_PATH: '../docs'

jobs:
update-docs:
Expand All @@ -41,17 +42,17 @@ jobs:
uses: actions/configure-pages@v2

- name: Build
run: |
xcodebuild docbuild -scheme AccessibilityDocumentation -destination 'generic/platform=iOS' -derivedDataPath ${{ env.DERIVED_DATA_PATH }}
run: >
xcodebuild docbuild -scheme ${{ env.SCHEME }}
-destination 'generic/platform=iOS'
-derivedDataPath ${{ env.DERIVED_DATA_PATH }}
- name: Build
run: |
$(xcrun --find docc) process-archive transform-for-static-hosting ${{ env.DERIVED_DATA_PATH }}Build/Products/Debug-iphoneos/AccessibilityDocumentation.doccarchive --output-path ../docs --hosting-base-path AccessibilityDocumentation
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ../docs
run: >
$(xcrun --find docc) process-archive
transform-for-static-hosting ${{ env.DERIVED_DATA_PATH }}Build/Products/Debug-iphoneos/${{ env.SCHEME }}.doccarchive
--output-path ${ env.ARTEFACT_PATH }
--hosting-base-path ${{ env.HOSTING_BASE_PATH }}
deploy:
needs: update-docs
Expand Down

0 comments on commit 3ffb0f0

Please sign in to comment.