Skip to content

Always publish snapshot docs. #266

Always publish snapshot docs.

Always publish snapshot docs. #266

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "*"
permissions:
contents: read
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
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
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest
Windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest
macOS:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Main Build
uses: ./.github/actions/run-gradle
- name: Functional Tests
uses: ./.github/actions/run-gradle
with:
arguments: functionalTest
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@v4
- 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@v4
- name: Publish Snapshot Documentation
uses: ./.github/actions/run-gradle
with:
arguments: gitPublishPush -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
env:
GRGIT_USER: ${{ github.actor }}
GRGIT_PASS: ${{ secrets.GH_TOKEN }}