This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.62 KB
/
1.19-pubish.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
name: 1.19.X Publish Tasks
on:
workflow_dispatch:
inputs:
platform:
description: 'Target Platform to publish. Values: all, modrinth, curseforge'
default: 'all'
required: true
options:
- all
- modrinth
- curseforge
permissions:
contents: read
jobs:
publish-to-modrinth:
runs-on: ubuntu-latest
if: github.event.inputs.platform == 'modrinth' || github.event.inputs.platform == 'all'
steps:
- uses: actions/checkout@v3
with:
ref: '1.19'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Upload with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: modrinthnnu4dJj4
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
publish-to-curseforge:
runs-on: ubuntu-latest
if: github.event.inputs.platform == 'curseforge' || github.event.inputs.platform == 'all'
steps:
- uses: actions/checkout@v3
with:
ref: '1.19'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Upload with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: curseforge622165
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}