on: [push] jobs: build: runs-on: docker container: eclipse-temurin:21-alpine steps: - name: Install JDK and other deps run: apk upgrade && apk add maven git nodejs curl - name: Checkout uses: https://github.com/actions/checkout@v4 - name: Build run: mvn package - name: Add build data run: "echo \"$(git describe)\nBuild date: $(date)\n\n$(git log -1)\" > README.txt" - name: Upload artifacts uses: https://github.com/actions/upload-artifact@v3 with: path: | README.txt target/blog-*.jar if-no-files-found: error