-
Notifications
You must be signed in to change notification settings - Fork 94
57 lines (55 loc) · 1.8 KB
/
publish.yml
File metadata and controls
57 lines (55 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@v6
- uses: actions/cache@v5
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: liberica
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
with:
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