Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/actions/deploy-site/action.yml

This file was deleted.

17 changes: 15 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy

on:
workflow_call:
workflow_dispatch:

jobs:
Expand All @@ -10,9 +11,21 @@ jobs:
environment:
name: github-pages
permissions:
contents: write
id-token: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy-site
- uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: true
- name: Prepare API documentation
run: ./gradlew dokkaHtml
- name: Build Site
run: |
# Don't cache it to track updates.
pip install mkdocs-material
mkdocs build
- uses: actions/upload-pages-artifact@v3
with:
path: site
- uses: actions/deploy-pages@v4
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
environment:
name: github-pages
name: maven-central
permissions:
contents: write
id-token: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand All @@ -33,7 +31,6 @@ jobs:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
- uses: ./.github/actions/deploy-site
- name: Extract release notes
uses: ffurrer2/extract-release-notes@v2
with:
Expand All @@ -43,3 +40,7 @@ jobs:
run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy:
needs: release
uses: ./.github/workflows/deploy.yml