-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.03 KB
/
Copy pathrelease.yml
File metadata and controls
34 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on: workflow_dispatch
permissions:
contents: write
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version-file: .java-version
- name: Build
run: chmod +x ./gradlew && ./gradlew build
- uses: actions/upload-artifact@v7
with:
path: build/libs/*.jar
archive: false
- id: get_version
run: |
RESULT=$(./gradlew -q printVersion)
echo "version=$RESULT" >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v3
with:
tag_name: v${{ steps.get_version.outputs.version }}
files: build/libs/*
generate_release_notes: true
- run: ./gradlew publishAllPublicationsToHangar
env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
- run: ./gradlew publish
env:
GITHUB_PACKAGES_USERNAME: Kiber2009
GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}