Skip to content

Commit b0097e9

Browse files
authored
Replace composite deployment with the general workflow (#1382)
* Replace composite deployment with the normal one * Remove limits for testing * Move ./.github/workflows/deploy.yml usage into a new job * Add workflow_call * Add maven-central env for release job * Revert "Remove limits for testing" This reverts commit ac8b509
1 parent dccc02d commit b0097e9

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

.github/actions/deploy-site/action.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56

67
jobs:
@@ -10,9 +11,21 @@ jobs:
1011
environment:
1112
name: github-pages
1213
permissions:
13-
contents: write
1414
id-token: write
1515
pages: write
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: ./.github/actions/deploy-site
18+
- uses: gradle/actions/setup-gradle@v4
19+
with:
20+
cache-read-only: true
21+
- name: Prepare API documentation
22+
run: ./gradlew dokkaHtml
23+
- name: Build Site
24+
run: |
25+
# Don't cache it to track updates.
26+
pip install mkdocs-material
27+
mkdocs build
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: site
31+
- uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: github.event.repository.fork == false
1212
environment:
13-
name: github-pages
13+
name: maven-central
1414
permissions:
1515
contents: write
16-
id-token: write
17-
pages: write
1816
steps:
1917
- uses: actions/checkout@v4
2018
- uses: actions/setup-java@v4
@@ -33,7 +31,6 @@ jobs:
3331
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
3432
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
3533
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
36-
- uses: ./.github/actions/deploy-site
3734
- name: Extract release notes
3835
uses: ffurrer2/extract-release-notes@v2
3936
with:
@@ -43,3 +40,7 @@ jobs:
4340
run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md
4441
env:
4542
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
44+
deploy:
45+
needs: release
46+
uses: ./.github/workflows/deploy.yml

0 commit comments

Comments
 (0)