Skip to content

pages

pages #27

Workflow file for this run

name: pages
on:
workflow_run:
workflows: [ "ci" ]
types: [ completed ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: gradle
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: website/package-lock.json
- run: ./gradlew --no-daemon test jacocoTestReport
- name: Build docs (Docusaurus)
working-directory: website
run: |
npm ci
npm run build
- name: Prepare site
run: |
mkdir -p site
cp -r website/build/sprout/* site/
mkdir -p site/tests site/coverage
cp -r build/reports/tests/test/* site/tests/
cp -r build/reports/jacoco/html/* site/coverage/
# 한국어 버전용 리포트 복사
mkdir -p site/ko/tests site/ko/coverage
cp -r build/reports/tests/test/* site/ko/tests/
cp -r build/reports/jacoco/html/* site/ko/coverage/
- uses: actions/upload-pages-artifact@v3
with:
path: site
- uses: actions/deploy-pages@v4