ci: Update package deployment adding renaming #27
This file contains hidden or 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: Execute tests with Maven | |
on: | |
push: | |
branches: # Execute on "main" branch and product branches, avoid others | |
- 'main' # Main branch | |
- '*.*' # Product branches (e.g., 0.7, 0.x, 1.x, ...) | |
pull_request: | |
branches: | |
- 'main' # Main branch | |
- '*.*' # Product branches (e.g., 0.7, 0.x, 1.x, ...) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Execute tests with Maven | |
run: mvn test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |