refine CI and CD #3
Workflow file for this run
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: Continuous Delivery | |
on: | |
push: | |
branches: | |
- main | |
- initial-commit | |
permissions: | |
contents: read | |
packages: write | |
concurrency: | |
group: continuous-delivery | |
jobs: | |
build-and-run-tests-and-deploy: | |
name: Build, Run Tests, and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Run Maven | |
run: mvn -T 4 -B clean deploy | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |