-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (53 loc) · 1.57 KB
/
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
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: Release
on:
release:
types:
- released
- prereleased
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: 'release-cache'
restore-keys: |
${{ runner.os }}-1.20-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
user: the9grounds
project: AE-Additions
pullRequests: true
issues: true
issuesWoLabels: true
excludeLabels: 1.12.2,1.16.5,1.18.2
prWoLabels: true
- name: Build with Gradle
run: ./gradlew build publishCurseForge --no-daemon --max-workers 1
env:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
TAG: ${{ steps.vars.outputs.tag }}
PRERELEASE: ${{ github.event.release.prerelease }}
- uses: actions/upload-artifact@v2
with:
name: release-files
path: |
./build
./CHANGELOG.md