Skip to content

Commit

Permalink
Split pipeline.yml into code-quality.yml and documentation.yml
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Lyzev committed Nov 3, 2023
1 parent e4114fc commit 7635ec1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,12 @@
name: Pipeline
name: "Code Quality"

on:
workflow_dispatch:
push:
branches:
- 'master'
- 'dev'

jobs:
dokka:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Setup
run: 'chmod +x ./gradlew'
- name: Download Assets
run: './gradlew downloadAssets'
- name: Generate Sources
run: './gradlew genSources'
- name: Dokka Build
run: './gradlew dokkaHtml'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka/html
publish_branch: gh-pages
destination_dir: ./dokka
qodana:
runs-on: ubuntu-latest
steps:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Documentation"

on:
workflow_dispatch:
push:
branches:
- 'master'

jobs:
dokka:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Setup
run: 'chmod +x ./gradlew'
- name: Download Assets
run: './gradlew downloadAssets'
- name: Generate Sources
run: './gradlew genSources'
- name: Dokka Build
run: './gradlew dokkaHtml'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka/html
publish_branch: gh-pages
destination_dir: ./dokka
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
<br>
<img src="https://img.shields.io/github/languages/code-size/Lyzev/Schizoid" alt="GitHub code size in bytes"/>
<img src="https://img.shields.io/github/contributors/Lyzev/Schizoid" alt="GitHub contributors"/>
<br><br>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/code-quality.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/code-quality.yml/badge.svg" alt="Code Quality"/></a>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/documentation.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/documentation.yml/badge.svg" alt="Documentation"/></a>
<br>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/pipeline.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/pipeline.yml/badge.svg" alt="Pipeline"/></a>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/release.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/release.yml/badge.svg" alt="Release"/></a>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/gradle-wrapper-validation.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/gradle-wrapper-validation.yml/badge.svg" alt="Release"/></a>
<br>
<a href="https://github.com/Lyzev/Schizoid/actions/workflows/gradle-wrapper-validation.yml"><img src="https://github.com/Lyzev/Schizoid/actions/workflows/gradle-wrapper-validation.yml/badge.svg" alt="Validate Gradle Wrapper"/></a>
</div>

## Installation
Expand Down

0 comments on commit 7635ec1

Please sign in to comment.