Skip to content

updated CI file

updated CI file #3

Workflow file for this run

name: CI
on:
# pull_request:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Test
run: mvn test
- name: Build with Maven
run: |
mvn -B -P github package -file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# - name: upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: Package
# path: staging