[MERGE] #278 -> develop #50
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: TerningPoint DesignSystem CI | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 18 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 18 | |
distribution: "temurin" | |
- name: Change gradlew permissions | |
run: chmod +x gradlew | |
- name: Create Local Properties | |
run: touch local.properties | |
- name: Set Local Properties | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
TEST_BASE_URL: ${{ secrets.TEST_BASE_URL }} | |
NATIVE_APP_KEY: ${{ secrets.NATIVE_APP_KEY }} | |
NATIVEAPPKEY: ${{ secrets.NATIVEAPPKEY }} | |
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }} | |
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | |
RELEASE_STORE_FILE: ${{ secrets.RELEASE_STORE_FILE }} | |
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }} | |
run: | | |
echo base.url=\"$BASE_URL\" >> local.properties | |
echo test.base.url=\"$TEST_BASE_URL\" >> local.properties | |
echo native.app.key=\"$NATIVE_APP_KEY\" >> local.properties | |
echo nativeAppKey=\"$NATIVEAPPKEY\" >> local.properties | |
echo release.keyAlias=\"$RELEASE_KEY_ALIAS\" >> local.properties | |
echo release.keyPassword=\"$RELEASE_KEY_PASSWORD\" >> local.properties | |
echo release.storeFile=\"$RELEASE_STORE_FILE\" >> local.properties | |
echo release.storePassword=\"$RELEASE_STORE_PASSWORD\" >> local.properties | |
- name: Build Documentation | |
run: ./gradlew dokkaHtml | |
- name: Deploy Documentation to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: gh-pages | |
FOLDER: core/build/dokka/html |