Skip to content

Only publish snapshots when version is a snapshot #224

Only publish snapshots when version is a snapshot

Only publish snapshots when version is a snapshot #224

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
- name: Functional Tests (Gradle 8)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
- name: Functional Tests (Gradle 7)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel -Dgradle7=true
Windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests (Gradle 8)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
- name: Functional Tests (Gradle 7)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel -Dgradle7=true
macOS:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests (Gradle 8)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel
- name: Functional Tests (Gradle 7)
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest --parallel -Dgradle7=true
publish_snapshot_artifacts:
name: Publish Snapshot Artifacts
needs: linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ciscoo/cxf-codegen-gradle' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Publish
uses: ./.github/actions/run-gradle
env:
ORG_GRADLE_PROJECT_sonatypeSnapshotsUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypeSnapshotsPassword: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: publishAllPublicationsToSonatypeSnapshotsRepository -x check
update_snapshot_documentation:
name: Update Snapshot Documentation
needs: linux
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ciscoo/cxf-codegen-gradle' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: 'Publish Snapshot Documentation'
env:
GRGIT_USER: ${{ secrets.GH_TOKEN }}
run: .github/workflows/maybePublishSnapshotDocs.sh