Skip to content

Commit

Permalink
Deploy snapshot and release docs (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton authored Oct 30, 2024
1 parent a856a66 commit af25a66
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@ jobs:
distribution: 'zulu'
java-version: 21

- run: ./gradlew build
- run: ./gradlew build :burst:dokkaHtml

- run: ./gradlew publish
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'cashapp/burst' }}
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}

- name: Deploy docs to website
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'cashapp/burst' }}
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: site
FOLDER: burst/build/dokka/html
TARGET_FOLDER: docs/latest/
CLEAN: true
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
distribution: 'zulu'
java-version: 21

- run: ./gradlew publish
- run: ./gradlew publish :burst:dokkaHtml
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand All @@ -36,3 +36,12 @@ jobs:
run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy docs to website
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: site
FOLDER: burst/build/dokka/html
TARGET_FOLDER: docs/2.x/
CLEAN: true
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ org.gradle.caching=true
org.gradle.jvmargs=-Xmx1024m -Dfile.encoding=UTF-8
org.gradle.parallel=true

# HEY! If you change the major version here be sure to update release.yaml doc target folder!
VERSION_NAME=2.0.0-SNAPSHOT

systemProp.org.gradle.internal.http.socketTimeout=120000

0 comments on commit af25a66

Please sign in to comment.