Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 0648572

Browse files
author
Andrei Hava
committed
add publish workflow
1 parent 7141eac commit 0648572

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Java
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: temurin
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Build
28+
run: ./gradlew build
29+
30+
- name: Publish CurseForge
31+
run: ./gradlew curseforge
32+
env:
33+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
34+
35+
- name: Publish Modrinth
36+
run: ./gradlew modrinth
37+
env:
38+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

.idea/workspace.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)