-
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.
Merge pull request #42 from BlazingTwist/41-automate-pages
41 automate pages deployment
- Loading branch information
Showing
5 changed files
with
109 additions
and
0 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,56 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Generate GitHub Pages | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "master" branch | ||
push: | ||
branches: [ "master" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
name: Generate Javadoc and Api-docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 20 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '20' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- name: Install ApiDoc Generators | ||
run: | | ||
npm install -g @asyncapi/generator | ||
npm install -g @redocly/cli | ||
- name: Generate JavaDoc | ||
run: mvn clean compile javadoc:javadoc | ||
|
||
- name: Generate ApiDoc | ||
run: | | ||
ag --output ./docs/api-docs/asyncapi/ ./src/main/resources/dx/AsyncApi.schema.yml @asyncapi/html-template | ||
redocly build-docs ./src/main/resources/dx/Swagger.schema.yml --output=./docs/api-docs/swagger.html | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload docs dir | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: './docs' | ||
- name: Deploy Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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
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
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,37 @@ | ||
/* CSS */ | ||
.docs-button { | ||
appearance: button; | ||
backface-visibility: hidden; | ||
background-color: #405cf5; | ||
border-radius: 6px; | ||
border-width: 0; | ||
box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0; | ||
box-sizing: border-box; | ||
color: #fff; | ||
cursor: pointer; | ||
font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif; | ||
font-size: 100%; | ||
height: 44px; | ||
line-height: 1.15; | ||
margin: 12px 0 0; | ||
outline: none; | ||
overflow: hidden; | ||
padding: 0 25px; | ||
position: relative; | ||
text-align: center; | ||
text-transform: none; | ||
transform: translateZ(0); | ||
transition: all .2s,box-shadow .08s ease-in; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
touch-action: manipulation; | ||
width: max(30vw, 300px); | ||
} | ||
|
||
.docs-button:disabled { | ||
cursor: default; | ||
} | ||
|
||
.docs-button:focus { | ||
box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px; | ||
} |
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