Skip to content

Commit 1681989

Browse files
committed
Create release workflow
1 parent 7e1b7e7 commit 1681989

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
createRelease:
10+
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: checkout
15+
uses: actions/[email protected]
16+
17+
- name: set up JDK
18+
uses: actions/[email protected]
19+
with:
20+
distribution: 'adopt'
21+
java-version: 17
22+
23+
- name: Build
24+
run: ./gradlew assembleDist
25+
26+
- name: Create info variables
27+
id: variables
28+
run: |
29+
echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
30+
31+
- name: Get Changelog
32+
id: changelog
33+
uses: mindsers/[email protected]
34+
with:
35+
version: ${{ steps.variables.outputs.version }}
36+
validation_level: error
37+
38+
- name: Create Release
39+
uses: softprops/[email protected]
40+
with:
41+
body: "${{ steps.changelog.outputs.changes }}"
42+
fail_on_unmatched_files: true
43+
files: |
44+
scripting-host/build/distributions/scripting-host.tar
45+
scripting-host/build/distributions/scripting-host.zip
46+
draft: false
47+
prerelease: false

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CHANGELOG
2+
3+
## [UNRELEASED]
4+
5+
## [0.1.0] - 2024-07-06
6+
7+
### Added
8+
- Initial Version
9+
10+
11+
[0.1.0]: https://github.com/EdwarDDay/taluspnp/releases/tag/0.1.0
12+
[UNRELEASED]: https://github.com/EdwarDDay/taluspnp

0 commit comments

Comments
 (0)