Add CI/CD
Build and publish releases / release (push) Successful in 3m58s Details

main v1.1
kalle 2023-06-28 21:24:00 +02:00
parent 6320d31f01
commit 4bb4e2f533
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
name: "Build and publish releases"
on:
push:
tags: "v*"
jobs:
release:
if: github.repository_owner == 'mc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: https://github.com/actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: "build"
run: |
./gradlew build
- name: "move releases"
run: |
mkdir release
mv build/libs/*.jar release
- name: "publish release"
uses: https://code.forgejo.org/actions/forgejo-release@v1
with:
direction: upload
release-dir: release
token: ${{ secrets.TOKEN }}