Skip to content

Commit

Permalink
CI 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cometj03 committed Feb 26, 2024
1 parent 4b2480e commit 3ea1131
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 89 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/deploy.yml
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 }}
34 changes: 0 additions & 34 deletions .github/workflows/deployDocsSite.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/deployLibraryYLS.yml

This file was deleted.

0 comments on commit 3ea1131

Please sign in to comment.