Skip to content

Commit

Permalink
update CI and Publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMCLoveMan committed Jun 13, 2023
1 parent dc5d4c0 commit 58a9b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 48 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/java_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,10 @@ on:
- '.github/**'
- '**.md'
- '**.txt'
pull_request:
tags-ignore:
- '**'
paths-ignore:
- '.github/**'
- '**.md'
- '**.txt'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'microsoft'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: chmod +x ./gradlew && ./gradlew build
ci:
uses: TheMCBrothers/.github/.github/workflows/mod_ci.yml@main
33 changes: 7 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,10 @@ permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
env:
cf_key: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth_token: ${{ secrets.MODRINTH_TOKEN }}
nexus_uname: ${{ secrets.PUBLISH_USER }}
nexus_pwd: ${{ secrets.PUBLISH_PASSWORD }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'microsoft'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: chmod +x ./gradlew && ./gradlew build
- name: Publish to Nexus
run: ./gradlew publish
- name: Publish to Modrinth
run: ./gradlew modrinth
- name: Publish to CurseForge
run: ./gradlew curseforge
publish:
uses: TheMCBrothers/.github/.github/workflows/mod_publish.yml@main
secrets:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}

0 comments on commit 58a9b4c

Please sign in to comment.