-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (48 loc) · 1.75 KB
/
weekly.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
name: Weekly snapshots
on:
schedule:
- cron: "0 20 * * 5"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: Setup JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew build
- name: Collect
run: |
mkdir release
mv sinocore/sinocore-neoforge/build/libs/sinocore-*.[0-9].jar release
mv sinocore/sinocore-fabric/build/libs/sinocore-*.[0-9].jar release
mv sinobrush/sinobrush-neoforge/build/libs/sinobrush-*.[0-9].jar release
mv sinobrush/sinobrush-fabric/build/libs/sinobrush-*.[0-9].jar release
mv sinodeco/sinodeco-neoforge/build/libs/sinodeco-*.[0-9].jar release
mv sinodeco/sinodeco-fabric/build/libs/sinodeco-*.[0-9].jar release
zip release/mods.zip release/*
mkdir release/meta
mv meta/sinoseries-neoforge-meta/build/libs/sinoseries-*.[0-9].jar release/meta
mv meta/sinoseries-fabric-meta/build/libs/sinoseries-*.[0-9].jar release/meta
- name: Publish
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: true
generate_release_notes: false
preserve_order: true
tag_name: '${{ github.ref_name }}-snapshot'
name: "SinoSeries Weekly build #${{ github.run_number }}"
files: |
release/meta/*.jar
release/mods.zip