Skip to content

Commit

Permalink
Fix runs to use build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Nov 20, 2023
1 parent f8bcc09 commit 2708ff1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@ jobs:
- name: Tag Release
run: |
./gradlew tagRelease
env:
BUILD_CACHE_URL: ${{ secrets.BUILD_CACHE_URL }}
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PASSWORD: ${{ secrets.BUILD_CACHE_PASSWORD }}
- name: Build
run: |
./gradlew build
env:
BUILD_CACHE_URL: ${{ secrets.BUILD_CACHE_URL }}
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PASSWORD: ${{ secrets.BUILD_CACHE_PASSWORD }}
- name: Publish
run: |
./gradlew publish curseforge modrinth closeAndReleaseSonatypeStagingRepository
Expand All @@ -39,6 +47,9 @@ jobs:
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
BUILD_CACHE_URL: ${{ secrets.BUILD_CACHE_URL }}
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PASSWORD: ${{ secrets.BUILD_CACHE_PASSWORD }}
- run: |
git push
git push --tags
3 changes: 3 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
./gradlew build
env:
SNAPSHOT_MAVEN_URL: https://maven.lukebemish.dev/snapshots/
BUILD_CACHE_URL: ${{ secrets.BUILD_CACHE_URL }}
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PASSWORD: ${{ secrets.BUILD_CACHE_PASSWORD }}
- name: Test - Fabric
if: (success() || failure()) && steps.build.conclusion == 'success'
run: |
Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ fabric_loader = "0.14.24"
fabric_api = "0.89.3+1.20.2"

neoforge = "20.2.59-beta"
neogradle = "7.0.26"

jetbrains_annotations = "24.0.1"
autoservice = "1.1.1"
Expand Down Expand Up @@ -39,7 +38,7 @@ mixinextras_neoforge = { module = "io.github.llamalad7:mixinextras-neoforge", ve
[plugins]
architectury_loom = { id = "dev.architectury.loom", version = "1.4.367" }
mdg_plugin = {id = "org.groovymc.modsdotgroovy", version = "1.4.3"}
curseforgegradle = {id = "net.darkhax.curseforgegradle", version = "1.1.16"}
curseforgegradle = {id = "net.darkhax.curseforgegradle", version = "1.1.17"}
minotaur = {id = "com.modrinth.minotaur", version = "2.8.1"}
managedversioning = {id = "dev.lukebemish.managedversioning", version.ref = "managedversioning"}
nexuspublish = {id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexuspublish"}

0 comments on commit 2708ff1

Please sign in to comment.