Skip to content

Fix docs publish

Fix docs publish #71

name: CI
on: [push, pull_request]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: build asciidoc --scan
- name: Run publish if necessary
if: runner.os == 'Linux' && github.ref == 'refs/heads/master' && github.event_name == 'push'
env: # Or as an environment variable
GRGIT_USER: ${{ secrets.GRGIT_USER }}
run: chmod +x publish.sh && ./publish.sh