Skip to content

Publish

Publish #12113

Workflow file for this run

name: Publish
on:
push:
branches:
- master
schedule:
- cron: '0 */2 * * *'
workflow_dispatch:
jobs:
build:
if: github.repository == 'grails/grails-static-website'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: '11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish Main Site
run: ./publish.sh
env:
GITHUB_SLUG: grails/grails-static-website
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
# AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GRADLE_TASK: build
- name: Publish Guides Site
run: ./publish.sh
env:
GITHUB_SLUG: grails/grails-guides
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
GRADLE_TASK: buildGuide