-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (47 loc) · 1.31 KB
/
auto-release.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
name: Create Release
on:
workflow_dispatch:
permissions:
contents: write
env:
RELEASE_VERSION: 0.0.11
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
ref: 'forge-1.20.1'
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
uses: gradle/[email protected]
with:
cache-read-only: false
arguments: build
- name: Upload Release to Github & Modrinth
uses: Kir-Antipov/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-tag: ${{ env.RELEASE_VERSION }}-forge
github-generate-changelog: false
github-prerelease: true
name: Greate ${{ env.RELEASE_VERSION }} [FORGE]
version: ${{ env.RELEASE_VERSION }}
changelog-file: changelog.md
modrinth-id: 8wDcQuht
modrinth-featured: true
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
version-type: alpha
game-versions: |
1.20.1
dependencies: |
create(required)
gregtechceu-modern(required)
kubejs-create(required)
files: |
build/libs/*[0-9].jar