Skip to content

Commit

Permalink
💚 Publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fantomitechno committed Apr 10, 2023
1 parent 65ce7c2 commit 43b144b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

name: publish
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Distributors
env:
MODRINTH: ${{ secrets.MODRINTH }}
run: ./gradlew publish
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ publishing {
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
token = System.getenv("MODRINTH")
projectId = "dinnermod"
versionNumber = project.version
versionType = "release"
Expand Down

0 comments on commit 43b144b

Please sign in to comment.