-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.93 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy
# Github에서 수동으로 실행해야 합니다.
on: workflow_dispatch
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 }}