Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
novr committed Nov 16, 2023
1 parent e7e8525 commit 8c9089d
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches: [ main ]
paths:
- 'Sources/**'
- 'Package.swift'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -28,24 +29,25 @@ jobs:
# Runs a set of commands using the runners shell
- name: Build docs
run: >
swift package --allow-writing-to-directory ./docs generate-documentation \
--target YumemiWeather \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path ios-training \
--output-path ./docs
xcodebuild docbuild -scheme YumemiWeather \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/YumemiWeather.doccarchive \
--hosting-base-path ios-training \
--output-path docs
- uses: actions/upload-pages-artifact@v2
with:
path: docs
deploy:
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2
id: deployment
# deploy:
# needs: build
# permissions:
# pages: write
# id-token: write
# runs-on: ubuntu-latest
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# steps:
# - uses: actions/deploy-pages@v2
# id: deployment

0 comments on commit 8c9089d

Please sign in to comment.