-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.06 KB
/
upload.yml
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
35
36
37
38
39
40
41
42
43
name: Upload to GitHub releases
on:
push:
branches: [ 'main' ]
jobs:
upload:
runs-on: [ ubuntu-latest ]
permissions:
id-token: write
contents: write
steps:
- name: Retrieve the repository
uses: actions/checkout@v3
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Prepare JDK17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Prepare Gradle
uses: gradle/gradle-build-action@v2
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Make Jar
run: gradle shadowJar
- name: Release Tag
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.vars.outputs.sha_short }}
# name: ${{ github.event.repository.name }}
body: "${{ steps.vars.outputs.sha_short }}"
commit: ${{ github.sha }}
artifacts: 'build_outputs/*.jar'
generateReleaseNotes: true