diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e24f183..7b7b948f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,19 +17,19 @@ jobs: os: [ 'ubuntu-latest', 'windows-latest' ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: ${{ matrix.java }} - - name: Set up Maven - uses: stCarolas/setup-maven@v4.5 - with: - maven-version: ${{ matrix.maven }} - - name: print Maven and Java versions - run: mvn --version - - name: Build - run: mvn -ntp -B clean verify - - name: Generate site - run: mvn -ntp -B clean site -P publicsite + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: ${{ matrix.maven }} + - name: print Maven and Java versions + run: mvn --version + - name: Build + run: mvn -ntp -B clean verify + - name: Generate site + run: mvn -ntp -B clean site -P publicsite diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml new file mode 100644 index 00000000..14dc7c25 --- /dev/null +++ b/.github/workflows/snapshot.yml @@ -0,0 +1,26 @@ +name: Deploy snapshot + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: maven + server-id: central + server-username: SONATYPE_USERNAME + server-password: SONATYPE_PASSWORD + - name: Deploy snapshot + run: mvn clean deploy -P release + env: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} \ No newline at end of file