Skip to content

Publish

Publish #19535

Workflow file for this run

name: Publish
on:
push:
branches:
- master
schedule:
- cron: '0 */2 * * *'
workflow_dispatch:
# Prevent two simultaneous publishes from racing on the deploy branch.
# cancel-in-progress=false so the in-flight deploy completes before the next.
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
permissions:
contents: write
if: github.repository == 'apache/grails-static-website'
runs-on: ubuntu-latest
steps:
- name: "⚙️ Maximize build space"
run: |
echo "-- Dotnet"
sudo rm -rf /usr/share/dotnet
echo "-- Android"
sudo rm -rf /usr/local/lib/android
echo "-- Haskell"
sudo rm -rf /opt/ghc
echo "-- CodeQL"
sudo rm -rf /opt/hostedtoolcache/CodeQL
df -h
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: liberica
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
cache-provider: basic # 'basic' uses the MIT-licensed, open-source cache provider; the default 'enhanced' provider (v6+) is proprietary (Gradle commercial Terms of Use)
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish Main Site
# The vendored PublishGuideTask is not configuration-cache safe.
run: ./gradlew clean publishMainSite --console=plain --no-daemon --no-configuration-cache
env:
GITHUB_SLUG: apache/grails-website
GH_TOKEN: ${{ secrets.GRAILS_GHTOKEN }}
GH_BRANCH: asf-site-production
GRAILS_WS_URL: https://grails.apache.org