forked from huskuraft/effortless
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 985 Bytes
/
Copy pathrelease.yml
File metadata and controls
51 lines (42 loc) · 985 Bytes
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
name: Release Mod
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
gradle-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup JDKs
uses: actions/setup-java@v4
with:
java-version: |
16
17
21
distribution: 'zulu'
cache: 'gradle'
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
with:
arguments: publish
github-release:
needs: gradle-publish
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Release
uses: softprops/action-gh-release@v1