ci: use actions
This commit is contained in:
parent
6e75aca837
commit
7f69f9a050
2 changed files with 31 additions and 10 deletions
31
.forgejo/workflows/main.yml
Normal file
31
.forgejo/workflows/main.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
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:
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: jars
|
||||||
|
- uses: actions/forgejo-release@v2
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: jars
|
|
@ -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
|
|
Loading…
Reference in a new issue