-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CONFIG: Update CI workflows * CONFIG: Update CI workflows * CONFIG: Update CI workflows * Update CodeQL Xcode version
- Loading branch information
1 parent
0cfbd7e
commit 6eb041c
Showing
7 changed files
with
147 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Documentation CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "ci-documentation-${{ github.head_ref || github.run_id }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-documentation: | ||
name: Build Documentation | ||
runs-on: ubuntu-latest | ||
env: | ||
SWIFTCI_DOCC: 1 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: swift package generate-documentation --product TMDb |
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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Deploy Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/documentation.yml" | ||
- "**/*.swift" | ||
- "**/*.docc/**/*.md" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "deploy-documentation" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
container: swift:5.9.2-jammy | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- name: Build documentation | ||
run: | | ||
swift package --allow-writing-to-directory docs \ | ||
generate-documentation --target TMDb \ | ||
--disable-indexing \ | ||
--transform-for-static-hosting \ | ||
--hosting-base-path TMDb \ | ||
--output-path docs | ||
env: | ||
SWIFTCI_DOCC: 1 | ||
|
||
- name: Upload documentation | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'docs' | ||
|
||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }}documentation/tmdb | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint Markdown | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/lint-markdown.yml" | ||
- "**/*.swift" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "lint-markdown-${{ github.head_ref || github.run_id }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
markdownlint: | ||
name: Markdownlint | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker://ghcr.io/igorshubovych/markdownlint-cli:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Lint README | ||
run: markdownlint "README.md" | ||
|
||
- name: Lint DocC files | ||
run: markdownlint "**/*.docc/**/*.md" |
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