LocalizedStringKeyの追加とClear Viewの実装 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy DocC | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-14 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build DocC | |
run: | | |
swift package --allow-writing-to-directory ./docs \ | |
generate-documentation \ | |
--target SwiftLI \ | |
--disable-indexing \ | |
--transform-for-static-hosting \ | |
--output-path ./docs \ | |
--transform-for-static-hosting \ | |
--hosting-base-path SwiftLI | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: "https://iroiro.dev/SwiftLI/documentation/swiftli/" | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |