-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup workflows for CF pages * Copy javadoc to html subfolder * Also trigger on push for main deploy * Setup new action for specific brances * Stuff * Different ref name for push actin * Differnt name? * Right, nothing in these folders changed * Prod docs would get updated * Update some docs * Add workflow dispatch to be safe
- Loading branch information
Showing
5 changed files
with
97 additions
and
1 deletion.
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,45 @@ | ||
name: Docs PR | ||
|
||
on: | ||
pull_request_target: | ||
branches: [ '**' ] | ||
paths: | ||
- 'dokka/**' | ||
- 'src/main/**' | ||
- '.github/workflows/docs-pr.yml' | ||
|
||
concurrency: | ||
group: pages | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: "${{ github.event.pull_request.merge_commit_sha }}" | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: zulu | ||
cache: gradle | ||
- name: Build docs | ||
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc | ||
- name: Copy javadoc subfolder | ||
run: mv build/dokka/javadoc build/dokka/html/ | ||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'build/dokka/html' | ||
- uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | ||
directory: build/dokka/html | ||
branch: pr-${{ github.event.pull_request.number }} | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |
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,41 @@ | ||
name: Docs Push | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
workflow_dispatch: {} | ||
|
||
concurrency: | ||
group: pages-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: zulu | ||
cache: gradle | ||
- name: Build docs | ||
run: ./gradlew --no-daemon dokkaHtml dokkaJavadoc | ||
- name: Copy javadoc subfolder | ||
run: mv build/dokka/javadoc build/dokka/html/ | ||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'build/dokka/html' | ||
- uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | ||
directory: build/dokka/html | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | ||
wranglerVersion: '3' |
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