Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Boxadactle authored Aug 18, 2024
1 parent 109746a commit a0882bd
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Publish
on: [ workflow_dispatch ]
on:
push:
branches: [ "latest" ]

permissions:
contents: read
Expand Down Expand Up @@ -48,31 +50,13 @@ jobs:
name: neoforge-build
path: neoforge/build/libs

- name: Set up gradlew
run: chmod +x ./gradlew
- name: Publish
run: ./gradlew publishUnified
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

- name: Build with Gradle
run: ./gradlew build

- name: Upload fabric
uses: actions/upload-artifact@v4
with:
name: fabric-build
path: fabric/build/libs

- name: Upload forge
uses: actions/upload-artifact@v4
with:
name: forge-build
path: forge/build/libs

- name: Publish
run: ./gradlew publishUnified
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

- name: Create GitHub release
run: ./gradlew githubRelease
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}
- name: Create GitHub release
run: ./gradlew githubRelease
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}

0 comments on commit a0882bd

Please sign in to comment.