Skip to content

Revert "Publish older version to grails/legacy-grails-doc" #278

Revert "Publish older version to grails/legacy-grails-doc"

Revert "Publish older version to grails/legacy-grails-doc" #278

Workflow file for this run

name: Java CI
on:
push:
branches:
- master
- '[4-9]+.[0-9]+.x'
jobs:
release:
runs-on: ubuntu-latest
env:
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: [email protected]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- name: Publish Documentation
run: |
./gradlew --stop
(set -x; ./gradlew assemble -x apiDocs --info --stacktrace)
- name: Determine docs target repository
if: success()
uses: haya14busa/action-cond@v1
id: docs_target
with:
cond: ${{ github.repository == 'grails/grails-doc' }}
if_true: 'grails/grails-doc'
if_false: ${{ github.repository }}
- name: Extract branch name
if: success()
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
- name: Publish to Github Pages
if: success()
uses: grails/github-pages-deploy-action@v2
env:
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
SKIP_SNAPSHOT: true
SKIP_LATEST: true
FOLDER: build/docs
DOC_FOLDER: gh-pages
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}