Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed May 17, 2024
1 parent efec5e9 commit 9ec92a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docc-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ on:
required: false
type: string
default: 'platform=iOS Simulator,name=iPhone 15 Pro'
targetname:
description: 'The name of the documentation target (lowercased) to generate an index.html file'
required: true
type: string

permissions:
contents: read
Expand Down Expand Up @@ -83,7 +79,8 @@ jobs:
transform-for-static-hosting .derivedData/Build/Products/Debug-iphoneos/${{ inputs.scheme }}.doccarchive \
--hosting-base-path ${GITHUB_REPOSITORY##*/} \
--output-path .docs
echo "<script>window.location.href += \"/documentation/${{ inputs.targetname }}\"</script>" > .docs/index.html
TARGET_NAME=$(echo ${{ inputs.scheme }} | tr '[:upper:]' '[:lower:]')
echo "<script>window.location.href += \"/documentation/$TARGET_NAME \"</script>" > .docs/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 9ec92a7

Please sign in to comment.