Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

jersey-webservice-template-jpa-elide-changes #74

jersey-webservice-template-jpa-elide-changes

jersey-webservice-template-jpa-elide-changes #74

Workflow file for this run

# Copyright 2024 Jiaqi Liu
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: CI/CD
"on":
pull_request:
push:
branches:
- master
repository_dispatch:
types: [jersey-webservice-template-jpa-elide-changes]
jobs:
yml-md-style-and-link-checks:
uses: QubitPi/hashicorp-aws/.github/workflows/yml-md-style-and-link-checks.yml@master
tests:
name: Testing install
needs: yml-md-style-and-link-checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: QubitPi/hashicorp-aws/.github/actions/jdk-setup@master
- name: Test
run: mvn -B clean install
release:
name: Release to Maven Central
needs: tests
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Release
uses: QubitPi/maven-central-release-action@master
with:
user: QubitPi
email: jack20220723@gmail.com
gpg-keyname: ${{ secrets.GPG_KEYNAME }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
triggering:
name: Triggering data model acceptance tests CI/CD
needs: release
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Trigger data model acceptance tests CI/CD
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.JWT_DOWNSTREAM_CICD_TRIGGER_TOKEN }}
repository: QubitPi/jersey-webservice-template-jpa-data-models-acceptance-tests
event-type: jersey-webservice-template-jpa-data-model-changes