Skip to content

Replace manual caching and wrapper-validation with setup-gradle action #87

Replace manual caching and wrapper-validation with setup-gradle action

Replace manual caching and wrapper-validation with setup-gradle action #87

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 17
uses: actions/setup-java@v4
with:
java-version: '17'
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