31 lines
702 B
YAML
31 lines
702 B
YAML
|
on: [push]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: alpine:3
|
||
|
steps:
|
||
|
- run: apk add git nodejs gradle
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Build jars
|
||
|
run: |
|
||
|
gradle jar shadowjar
|
||
|
- uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
name: jars
|
||
|
path: build/libs/
|
||
|
release:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: ubuntu:24.10
|
||
|
needs: [build]
|
||
|
if: github.ref_type == 'tag'
|
||
|
steps:
|
||
|
- run: apk add git nodejs bash
|
||
|
- uses: actions/download-artifact@v3
|
||
|
with:
|
||
|
name: jars
|
||
|
- uses: actions/forgejo-release@v2
|
||
|
with:
|
||
|
direction: upload
|
||
|
release-dir: jars
|