This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.63 KB
/
Generate.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Generate LibraryCode
on:
push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Generate rawouts
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
./LXLDevHelperBuilder.exe src raw.json tsout
shell: bash
- name: Add & Commit
uses: stefanzweifel/git-auto-commit-action@v4
generate:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Download File To Workspace
uses: carlosperate/download-file-action@v1.0.3
with:
file-url: "https://github.com/LiteLDev-LXL/LXLDevHelper-generate/raw/master/Generate.jar"
file-name: "Generate.jar"
- name: Get raw.json
uses: carlosperate/download-file-action@v1.0.3
with:
file-url: "https://github.com/LiteLDev-LXL/LXLDevHelper-DocSrc/raw/main/raw.json"
file-name: "raw.json"
- name: Run jar
run: |
rm -rf Library/
java -jar Generate.jar
- name: Zip
uses: papeloto/action-zip@v1
with:
files: Library
dest: Library.zip
- name: Move to folder
run: |
rm -rf Generate/*
mv Library.zip Builds/Library.zip
mv Library/* Generate
rm -rf Library
- name: Add & Commit
uses: stefanzweifel/git-auto-commit-action@v4