fix: dtcw url #2
This file contains hidden or 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
| name: Documentation Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - '**' # Run on all branches for build/test | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: write # Für peaceiris/actions-gh-pages@v3 | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # 1. docToolchain benötigt Java (Gradle-Basis) | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| # 2. docToolchain Wrapper herunterladen und ausführbar machen (dtcw) | |
| - name: Download docToolchain Wrapper | |
| run: | | |
| curl -Lo dtcw https://doctoolchain.org/dtcw | |
| chmod +x dtcw | |
| # 3. Dokumentation bauen (Build-Befehl aus docToolchain-Demo) | |
| # Die docToolchainConfig.groovy konfiguriert den Pfad auf 'docs' | |
| - name: Build Documentation | |
| run: ./dtcw buildHtml | |
| # 4. Deployment zu gh-pages (peaceiris action, wie im Demo-Repo) | |
| - name: Deploy to GitHub Pages | |
| if: github.ref == 'refs/heads/main' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/build/site/html # Ausgabepfad aus docToolchainConfig.groovy | |
| publish_branch: gh-pages |