CI 수정 #1
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: Deploy | |
on: | |
push: | |
branches: [ master, develop ] | |
jobs: | |
deploy-docs: | |
name: deploy documentation site | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build dokka site | |
run: ./gradlew dokkaHtml | |
- name: Deploy docs site to website | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-page | |
FOLDER: yls/build/dokka/html/ | |
TARGET_FOLDER: 'docs/0.x/' | |
release: | |
name: release on github | |
runs-on: ubuntu-latest | |
steps: | |
# Github 저장소를 로컬로 복사합니다. | |
- uses: actions/checkout@v4 | |
# version.properties에 명시된 버전명을 읽어옵니다. | |
- name: Read versionName property | |
id: release_version | |
uses: christian-draeger/[email protected] | |
with: | |
path: './version.properties' | |
properties: 'versionName' | |
# 릴리즈 노트를 작성하고 YLS 라이브러리를 Github에 릴리즈합니다. | |
- name: Create a GitHub release | |
uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: config.yml | |
version: ${{ steps.release_version.outputs.versionName }} | |
publish: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |