-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 946 Bytes
/
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
name: Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 20
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Update mod version
uses: christian-draeger/write-properties@1.0.1
with:
path: "gradle.properties"
property: "mod_version"
value: ${{ github.event.release.tag_name }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
env:
CI: true
- name: Build and upload
uses: gradle/gradle-build-action@v2
with:
arguments: build curseforge modrinth
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
CI: true