2020-06-11 14:07:34 -04:00
|
|
|
name: PR Build
|
|
|
|
|
2020-06-17 15:16:10 -04:00
|
|
|
on: pull_request
|
2020-06-11 14:07:34 -04:00
|
|
|
|
2023-12-07 15:28:51 -05:00
|
|
|
env:
|
2024-05-07 17:00:10 -04:00
|
|
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
2023-12-07 15:28:51 -05:00
|
|
|
|
2022-06-11 20:31:28 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-06-11 14:07:34 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2022-07-27 16:34:43 -04:00
|
|
|
if: ${{ github.repository == 'spring-projects/spring-security' }}
|
2020-06-11 14:07:34 -04:00
|
|
|
steps:
|
2023-12-14 06:47:13 -05:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-27 12:07:42 -04:00
|
|
|
- name: Set up gradle
|
2023-12-14 06:47:09 -05:00
|
|
|
uses: spring-io/spring-gradle-build-action@v2
|
2020-06-11 14:07:34 -04:00
|
|
|
with:
|
2021-10-07 14:20:10 -04:00
|
|
|
java-version: '17'
|
2022-07-27 12:07:42 -04:00
|
|
|
distribution: 'temurin'
|
2020-06-11 14:07:34 -04:00
|
|
|
- name: Build with Gradle
|
2024-06-28 08:31:48 -04:00
|
|
|
run: ./gradlew clean build -PskipCheckExpectedBranchVersion --continue
|
2024-05-13 07:49:45 -04:00
|
|
|
generate-docs:
|
|
|
|
name: Generate Docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository == 'spring-projects/spring-security' }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up gradle
|
|
|
|
uses: spring-io/spring-gradle-build-action@v2
|
|
|
|
with:
|
2024-05-13 07:53:01 -04:00
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
2024-05-13 07:49:45 -04:00
|
|
|
- name: Run Antora
|
|
|
|
run: ./gradlew -PbuildSrc.skipTests=true :spring-security-docs:antora
|
|
|
|
- name: Upload Docs
|
|
|
|
id: upload
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: docs/build/site
|
|
|
|
overwrite: true
|