asciidoctor-gradle-plugin 4.0.3 and asciidoctorj 2.5.13 #89
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
name: publish-to-github-pages | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
build: | |
if: github.repository == 'FirebirdSQL/jaybird-manual' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 | |
- name: Build with Gradle | |
run: ./gradlew makePages | |
- name: Pages artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pages-artifact | |
path: build/pages | |
compression-level: 9 | |
retention-days: 1 | |
publish-pages: | |
runs-on: ubuntu-latest | |
needs: [build] | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get pages artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: pages-artifact | |
path: pages | |
- name: Deploy to GitHub pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: pages |