-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (39 loc) · 1.05 KB
/
publish.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@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
gradle-version: release-candidate
arguments: modrinth
cache-read-only: ${{ github.repository_owner != 'emmods' }}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
VERSION_NAME: ${{ inputs.version_name }}
CHANGELOG: ${{ inputs.changelog }}
VERSION_TYPE: ${{ inputs.version_type }}