Skip to content

Commit d5061df

Browse files
added workflow
1 parent db2e4f4 commit d5061df

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'release'
2+
on: [ push, pull_request ]
3+
permissions:
4+
contents: write
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
10+
- name: 'Checkout repository'
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- name: 'Validate gradlew'
16+
uses: gradle/actions/wrapper-validation@v4
17+
18+
- name: 'Setup Java'
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
check-latest: true
24+
cache: 'gradle'
25+
26+
- name: 'Change permissions'
27+
run: chmod +x ./gradlew
28+
29+
- name: 'Build plugin'
30+
run: ./gradlew --console plain --no-daemon --full-stacktrace check build
31+
32+
- name: 'Release plugin'
33+
uses: softprops/action-gh-release@v2
34+
if: startsWith(github.ref, 'refs/tags/v')
35+
with:
36+
body: 'automated release at commit ${{ github.sha }}'
37+
files: 'build/dist/*.jar'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
plugin_version=3.0.9-INDEV
1+
plugin_version=3.0.10
22
velocity_api_version=3.4.0-SNAPSHOT
33
minecraft_version=1.20.6

0 commit comments

Comments
 (0)