Update milestone to point to 4.9.3 #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Axon Bill Of Materials | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- axon-bom-*.*.x | |
jobs: | |
build: | |
name: Test and Build | |
runs-on: ubuntu-latest | |
continue-on-error: true # do not fail the whole job if one of the steps fails | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 8 | |
cache: "maven" | |
server-id: sonatype | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Build | |
run: | | |
./mvnw -B -U -Dstyle.color=always verify -DskipTests=true | |
- name: Deploy to Sonatype | |
if: success() | |
run: | | |
mvn -B -U -Dstyle.color=always deploy -DskipTests=true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_ID }} | |
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASS }} | |
- name: Notify success to Slack | |
if: success() | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
uses: voxmedia/[email protected] | |
with: | |
channel_id: CAGSEC92A | |
status: SUCCESS | |
color: good | |
- name: Notify failure to Slack | |
if: failure() | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
uses: voxmedia/[email protected] | |
with: | |
channel_id: CAGSEC92A | |
status: FAILED | |
color: danger |