-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.59 KB
/
compile.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on:
push:
branches:
- main
permissions:
contents: write
discussions: write
jobs:
minecraft-main:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up JDK 21 for x64
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
architecture: x64
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main
- name: Compile with maven
run: |
EW_VERSION=${{ steps.semver.outputs.next }}
mvn --batch-mode --update-snapshots package
- name: Create artifact directory
shell: bash
run: |
directory=easywarp
mkdir $directory
cp README.md LICENSE $directory
cp target/easywarp-*.jar $directory
tar cJf $directory.tar.xz $directory
- name: Create a Release [${{ steps.semver.outputs.next }}]
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
tag_name: ${{ steps.semver.outputs.next }}
generate_release_notes: true
files: |
easywarp.tar.*
- name: Create a Release [Latest]
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
tag_name: latest
generate_release_notes: true
files: |
easywarp.tar.*