-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.05 KB
/
manual-release.yml
File metadata and controls
45 lines (37 loc) · 1.05 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
35
36
37
38
39
40
41
42
43
44
45
name: Release with Compiled JARs
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build and package JARs
run: |
./gradlew clean build
mkdir -p release-jars
find . -name "*.jar" -exec cp {} release-jars/ \;
- name: Get commit history
run: |
git log --pretty=format:'%h - %s' origin/master..HEAD > commit_history.txt
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: "v${{ github.run_number }}"
release_name: "Release v${{ github.run_number }}"
body: |
Commits:
${{ steps.get-commits.outputs.history }}
draft: false
prerelease: false
files: |
release-jars/*.jar
- name: Upload Commit History
run: |
gh release upload "v${{ github.run_number }}" commit_history.txt