generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.08 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
name: Release
on:
workflow_dispatch:
inputs:
version_name:
type: string
description: Modrinth version name to use
required: true
changelog:
type: string
description: Modrinth changelog to use
required: true
version_type:
type: choice
description: Modrinth version type to use
default: release
options:
- release
- beta
- alpha
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 21
- uses: gradle/gradle-build-action@v2
with:
gradle-version: release-candidate
arguments: neoforge:modrinth fabric:modrinth
cache-read-only: ${{ github.repository_owner != 'triphora' }}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
VERSION_NAME: ${{ inputs.version_name }}
CHANGELOG: ${{ inputs.changelog }}
VERSION_TYPE: ${{ inputs.version_type }}