-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Henrik Panhans <henrik@panhans.dev>
- Loading branch information
1 parent
5b4a44c
commit 8d1fd56
Showing
55 changed files
with
2,958 additions
and
953 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
name: Pages Deploy | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
branches: ["main"] | ||
paths: | ||
- "Sources/**/*.swift" | ||
- "Tests/**/*.swift" | ||
- "**/*.md" | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
deploy-pages: | ||
name: Deploy Documentation to GitHub Pages | ||
runs-on: macos-14 | ||
environment: | ||
# Must be set to this for deploying to GitHub Pages | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: macos-12 | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
- name: Configure Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Cache SPM dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build DocC | ||
run: | | ||
swift package --allow-writing-to-directory ./docs \ | ||
generate-documentation --target HPOpenWeather \ | ||
--transform-for-static-hosting \ | ||
--hosting-base-path HPOpenWeather \ | ||
--output-path ./docs | ||
echo "<script>window.location.href += \"/documentation/hpopenweather\"</script>" > docs/index.html | ||
run: Scripts/build-docc-archive HPOpenWeather | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload only docs directory | ||
path: 'docs' | ||
path: ${{ runner.temp }}/docs | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
uses: actions/deploy-pages@v4 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,7 @@ fastlane/test_output | |
iOSInjectionProject/ | ||
.swiftpm | ||
settings.json | ||
/docs | ||
/coverage | ||
|
||
**/.DS_Store |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,32 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "HPNetwork", | ||
"repositoryURL": "https://github.com/henrik-dmg/HPNetwork", | ||
"state": { | ||
"branch": null, | ||
"revision": "fba08b668713bad984ad4d76bf99b55e9192fcce", | ||
"version": "3.1.2" | ||
} | ||
}, | ||
{ | ||
"package": "HPURLBuilder", | ||
"repositoryURL": "https://github.com/henrik-dmg/HPURLBuilder", | ||
"state": { | ||
"branch": null, | ||
"revision": "49ad1fb6f10914e7134dc9f8e5c21f48a52e3d37", | ||
"version": "1.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "swift-argument-parser", | ||
"repositoryURL": "https://github.com/apple/swift-argument-parser.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "9f39744e025c7d377987f30b03770805dcb0bcd1", | ||
"version": "1.1.4" | ||
} | ||
}, | ||
{ | ||
"package": "SwiftDocCPlugin", | ||
"repositoryURL": "https://github.com/apple/swift-docc-plugin", | ||
"state": { | ||
"branch": "main", | ||
"revision": "a3217706ad049ca058743003e065767773cc56cc", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "SymbolKit", | ||
"repositoryURL": "https://github.com/apple/swift-docc-symbolkit", | ||
"state": { | ||
"branch": "main", | ||
"revision": "b45d1f2ed151d057b54504d653e0da5552844e34", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "swift-format", | ||
"repositoryURL": "https://github.com/apple/swift-format", | ||
"state": { | ||
"branch": "main", | ||
"revision": "e5875f32d37d0de760bd4ca3b988f42373866f96", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "SwiftSyntax", | ||
"repositoryURL": "https://github.com/apple/swift-syntax.git", | ||
"state": { | ||
"branch": "main", | ||
"revision": "1e61cc3bd13c0f61d75e509994e00e64fecf8bf3", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "swift-system", | ||
"repositoryURL": "https://github.com/apple/swift-system.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "836bc4557b74fe6d2660218d56e3ce96aff76574", | ||
"version": "1.1.1" | ||
} | ||
}, | ||
{ | ||
"package": "swift-tools-support-core", | ||
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "284a41800b7c5565512ec6ae21ee818aac1f84ac", | ||
"version": "0.4.0" | ||
} | ||
"pins" : [ | ||
{ | ||
"identity" : "hpnetwork", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/henrik-dmg/HPNetwork", | ||
"state" : { | ||
"revision" : "a4629039573f695f97fc044032c4e654b40671b0", | ||
"version" : "4.0.1" | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
}, | ||
{ | ||
"identity" : "hpurlbuilder", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/henrik-dmg/HPURLBuilder", | ||
"state" : { | ||
"revision" : "49ad1fb6f10914e7134dc9f8e5c21f48a52e3d37", | ||
"version" : "1.1.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-http-types", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-http-types.git", | ||
"state" : { | ||
"revision" : "ae67c8178eb46944fd85e4dc6dd970e1f3ed6ccd", | ||
"version" : "1.3.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
Oops, something went wrong.