This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (54 loc) · 1.57 KB
/
Generate.yml
File metadata and controls
59 lines (54 loc) · 1.57 KB
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
# 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:
branches: [ master ]
jobs:
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: Run jar
run: |
rm -rf Library/*
java -jar Generate.jar
- name: ls
run: ls
- 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: commit
run: |
git config --global user.email 3601594248@qq.com
git config --global user.name moxicat
git add *
git commit -m "update" -a
- name: Push change
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}