Skip to content

Commit 6f1a7b7

Browse files
committed
Re-add snapshot docs publishing
1 parent af23962 commit 6f1a7b7

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,25 @@ jobs:
104104
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
105105
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }}
106106
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}
107-
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-configuration-cache
107+
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-configuration-cache
108+
109+
- name: Upload docs
110+
uses: actions/upload-pages-artifact@v4
111+
with:
112+
path: build/dokka/html
113+
114+
deployDocs:
115+
name: Deploy snapshot docs
116+
needs: [ buildAndTest, publishSnapshot ]
117+
runs-on: ubuntu-latest
118+
if: ${{ github.ref == 'refs/heads/main' && endsWith(needs.buildAndTest.outputs.version, '-SNAPSHOT') }}
119+
120+
121+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
122+
permissions:
123+
pages: write # to deploy to Pages
124+
id-token: write # to verify the deployment originates from an appropriate source
125+
126+
steps:
127+
- name: Deploy docs
128+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)