-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
89 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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 }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.