-
Notifications
You must be signed in to change notification settings - Fork 87
47 lines (47 loc) · 1.67 KB
/
publish.yml
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
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