mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-27 03:46:17 -06:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
|
|
name: PR Snapshots
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '.*'
|
|
- '**/.settings/**'
|
|
- 'flatlaf-core/svg/**'
|
|
- 'flatlaf-testing/dumps/**'
|
|
- 'flatlaf-testing/misc/**'
|
|
- 'images/**'
|
|
|
|
jobs:
|
|
snapshot:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'JFormDesigner/FlatLaf'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Java 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 21
|
|
distribution: temurin # pre-installed on ubuntu-latest
|
|
|
|
- name: Cache Gradle
|
|
uses: ./.github/actions/cache-gradle
|
|
|
|
- name: Publish PR snapshot to Sonatype Central
|
|
run: >
|
|
./gradlew publish -PskipFonts -Dorg.gradle.internal.publish.checksums.insecure=true -Dorg.gradle.parallel=false
|
|
-Pgithub.event.pull_request.number=${{ github.event.pull_request.number }}
|
|
env:
|
|
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
|
|
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|