EVA-PIMP relax page filed type (#119) #96
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: Main pipeline | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build_main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.inputs.branch }} | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Build project | |
run: ./gradlew build | |
- name: Publish to Maven releases | |
run: ./gradlew publish -Drelease=true | |
env: | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }} | |
- name: Cleanup gradle daemon cache | |
run: ./gradlew --stop | |
- run: echo "::set-output name=short::$(git rev-parse --short HEAD)" | |
id: git_sha | |
- name: Publish to Maven snapshots | |
run: ./gradlew publish -Drelease=false | |
env: | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }} | |
GITHUB_SHA: ${{ steps.git_sha.outputs.short }} |