Bump Jaybird version to 5.0.2 #57
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@v3 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b | |
- name: Build with Gradle | |
run: ./gradlew makePages | |
- name: Cleanup Gradle Cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties | |
rm -fr ~/.gradle/caches/*/plugin-resolution/ | |
find ~/.gradle/caches/ -name "*.lock" -type f -delete | |
- name: Pages artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pages-artifact | |
path: build/pages | |
retention-days: 1 | |
publish-pages: | |
runs-on: ubuntu-latest | |
needs: [build] | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get pages artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: pages-artifact | |
path: pages | |
- name: Deploy to GitHub pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: pages |