-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.68 KB
/
draft-release.yaml
File metadata and controls
56 lines (47 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
name: "Draft Release"
on:
workflow_dispatch:
jobs:
action:
name: "Action"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Checkout Repository"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-tags: true
fetch-depth: 0
- name: "Checkout CI Scripts"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
repository: xpdustry/.github
path: .xpdustry-ci
sparse-checkout: scripts
- name: "Setup Java 25"
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
java-version: "25"
distribution: "temurin"
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6
- name: "Get And Validate Version"
id: version
run: |
version="$(./gradlew properties -q --no-daemon |\
grep '^version:' | cut -d ':' -f 2 | xargs)"
.xpdustry-ci/scripts/version-validate.sh "$version" "false"
echo "version=${version%-SNAPSHOT}" >> "$GITHUB_OUTPUT"
- name: "Generate Changelog"
run: |
.xpdustry-ci/scripts/changelog-generate.sh \
"$GITHUB_REPOSITORY" \
".GENERATED_CHANGELOG.md"
- name: "Create Draft Release"
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
with:
tag_name: "v${{ steps.version.outputs.version }}"
name: "v${{ steps.version.outputs.version }} release"
draft: true
body_path: ".GENERATED_CHANGELOG.md"