Skip to content

Merge branch 'main' of https://github.com/mysterium57632/javaCodebase #34

Merge branch 'main' of https://github.com/mysterium57632/javaCodebase

Merge branch 'main' of https://github.com/mysterium57632/javaCodebase #34

Workflow file for this run

name: Generate and Publish JavaDoc
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Generate JavaDoc
run: |
mkdir -p docs
javadoc -d docs -sourcepath src -subpackages de
- name: Set Git config
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages