Skip to content

Commit

Permalink
Add auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKodeToad authored Nov 25, 2024
1 parent a13c7e1 commit 9b5bb96
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish

on:
push:
tags: ["*"]

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: build
- uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659
with:
modrinth-id: XLd8Sh64
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 559653
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9b5bb96

Please sign in to comment.