Skip to content

🔧 pipe v2

🔧 pipe v2 #2

Workflow file for this run

name: pipeline
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Package
run: mvn package
publish:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write
steps:
- uses: action/checkout@v3
- uses: action/setup-java@v3
with:
java-version: '17'
distribuition: '17-jdk-alpine'
package: '*.jar'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}