Skip to content

Commit

Permalink
chore: Add github actions
Browse files Browse the repository at this point in the history
This should work right?

Signed-off-by: Awakened-Redstone <[email protected]>
  • Loading branch information
Awakened-Redstone committed Sep 23, 2024
1 parent e264841 commit c4c98ce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish mod

on:
push:
branches: [ "main" ]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK 21
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: '21'
distribution: 'temurin'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- run: ./gradlew build modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- run: ./gradlew build publish
env:
MAVEN_REPO: ${{ secrets.MAVEN_REPO }}
MAVEN_AUTH_HEADER: ${{ secrets.MAVEN_AUTH_HEADER }}
MAVEN_AUTH_TOKEN: ${{ secrets.MAVEN_AUTH_TOKEN }}

0 comments on commit c4c98ce

Please sign in to comment.