Skip to content

Commit

Permalink
Merge branch 'master' into dlangst2
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangst committed Feb 10, 2023
2 parents e69fd66 + d241da5 commit f26219f
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ name: GitHub Actions ACD Java SDK
on: [push, pull_request]

jobs:
verify:
build_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version:
- 8
- 11
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: ${{ matrix.java-version }}
distribution: 'adopt'

- name: Install Dependencies
run: mvn install

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Building Project
run: mvn clean compile

Expand All @@ -42,7 +40,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: [verify, test]
needs: build_test
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore')"
steps:
- name: Setup Extensions
Expand All @@ -53,7 +51,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14'
node-version: '18'

- name: Install Semantic Release dependencies
run: |
Expand All @@ -69,7 +67,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo ::set-output name=NEXT_RELEASE::$(npx semantic-release --dry-run | grep -oP "Published release \K[0-9]+\.[0-9]+\.[0-9]+") #null if no published release
run: echo "NEXT_RELEASE=$(npx semantic-release --dry-run | grep -oP "Published release \K[0-9]+\.[0-9]+\.[0-9]+")" >> $GITHUB_OUTPUT

- name: Publish to git releases and tags
if: ${{ steps.next_release.outputs.NEXT_RELEASE != null }}
Expand Down

0 comments on commit f26219f

Please sign in to comment.