ci: use actions
Some checks failed
/ build (push) Successful in 59s
/ release (push) Failing after 17s

This commit is contained in:
Hugo Renard 2024-10-31 16:43:55 +01:00
parent 6e75aca837
commit e84fc552ff
Signed by: hougo
GPG key ID: 3A285FD470209C59
2 changed files with 28 additions and 10 deletions

View file

@ -0,0 +1,28 @@
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: alpine:3
needs: [build]
if: github.ref_type == 'tag'
steps:
- run: apk add git nodejs
- uses: actions/download-artifact@v3
with:
name: jars
- uses: actions/forgejo-release@v2

View file

@ -1,10 +0,0 @@
package:
image:
name: gradle:jdk17
script:
- gradle jar shadowjar
artifacts:
paths:
- build/libs/keycloak-scim-1.0-SNAPSHOT.jar
- build/libs/keycloak-scim-1.0-SNAPSHOT-all.jar
- build/libs/keycloak-scim-1.0-SNAPSHOT-all-legacy.jar