blog-software-java/.forgejo/workflows/build.yml

25 lines
643 B
YAML
Raw Normal View History

2025-01-14 14:26:40 +01:00
on: [push]
jobs:
build:
runs-on: docker
2025-01-19 10:30:47 +01:00
container: eclipse-temurin:21-alpine
2025-01-14 14:26:40 +01:00
steps:
- name: Install JDK and other deps
run: apk upgrade && apk add maven git nodejs curl
2025-01-14 14:26:40 +01:00
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Build
run: mvn package
- name: Add build data
run: "mkdir meta && git log -1 > meta/commit.txt && date > meta/build-date.txt"
2025-01-14 14:26:40 +01:00
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: |
meta
target/blog-*.jar
2025-01-19 10:15:42 +01:00
if-no-files-found: error