forked from kazzmir/paintown
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.06 KB
/
compile-editor.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
name: java editor build
on:
push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 8 for x64
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
architecture: x64
- name: Build
run: |
./easy-compile-editor
- name: Archive Folder
uses: actions/upload-artifact@v2
with:
name: artifact
path: ${{github.workspace}}/editor/build/libs/*.jar
publish-release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: artifact
path: ${{github.workspace}}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ github.workspace }}/*.jar
token: ${{ secrets.GITHUB_TOKEN }}