Merge pull request #98 from KakaoCup/develop #19
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
name: Master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
github-pages: | |
name: Generate Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
cache: gradle | |
- name: dokkaHtml | |
run: | | |
./gradlew clean dokkaHtml | |
- name: Build Page | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
source: "./html" | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site | |
deploy-osshr: | |
name: Deploy to OSSHR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
cache: gradle | |
- uses: little-core-labs/[email protected] | |
- name: Deploy to OSSRH | |
run: ./gradlew :compose:publishDefaultPublicationToOSSHRRepository -PreleaseMode=SNAPSHOT --stacktrace | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |