Skip to content

Commit

Permalink
Use properties for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Jul 21, 2023
1 parent 4afd85c commit 0e58369
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 72 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
arguments: |
clean
build
-DforgeKeyStore="keystoreForgeMods.jks"
-DforgeKeyStoreAlias="${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}"
-DforgeKeyStorePass="${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}"
-DforgeKeyStoreKeyPass="${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}"
-DforgeSignSHA1="f927f4701bf4c0620c7bd0a501ce278f5e5ecc62"
-PforgeKeyStore="keystoreForgeMods.jks"
-PforgeKeyStoreAlias="${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}"
-PforgeKeyStorePass="${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}"
-PforgeKeyStoreKeyPass="${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}"
-PforgeSignSHA1="f927f4701bf4c0620c7bd0a501ce278f5e5ecc62"
- name: Upload mod file
uses: actions/upload-artifact@v3
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/gradle_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
arguments: |
clean
build
-Dversion=${{ steps.get_release.outputs.name }}
-Dchangelog="[Changelog at ${{ steps.get_release.outputs.html_url }}](${{ steps.get_release.outputs.html_url }})\n\n${{ steps.get_release.outputs.body }}"
-DforgeKeyStore=keystoreForgeMods.jks
-DforgeKeyStoreAlias=${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}
-DforgeKeyStorePass=${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}
-DforgeKeyStoreKeyPass=${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}
-DforgeSignSHA1=f927f4701bf4c0620c7bd0a501ce278f5e5ecc62
-Pversion=${{ steps.get_release.outputs.name }}
-Pchangelog="[Changelog at ${{ steps.get_release.outputs.html_url }}](${{ steps.get_release.outputs.html_url }})\n\n${{ steps.get_release.outputs.body }}"
-PforgeKeyStore=keystoreForgeMods.jks
-PforgeKeyStoreAlias=${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}
-PforgeKeyStorePass=${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}
-PforgeKeyStoreKeyPass=${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}
-PforgeSignSHA1=f927f4701bf4c0620c7bd0a501ce278f5e5ecc62
- name: Push on stores
uses: gradle/[email protected]
Expand All @@ -54,15 +54,15 @@ jobs:
curseforge
modrinth
modrinthSyncBody
-Dversion=${{ steps.get_release.outputs.name }}
-Dchangelog="[Changelog at ${{ steps.get_release.outputs.html_url }}](${{ steps.get_release.outputs.html_url }})\n\n${{ steps.get_release.outputs.body }}"
-DcurseforgeApiKey=${{ secrets.CURSEFORGE_API_KEY }}
-DmodrinthToken=${{ secrets.MODRINTH_TOKEN }}
-DforgeKeyStore=keystoreForgeMods.jks
-DforgeKeyStoreAlias=${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}
-DforgeKeyStorePass=${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}
-DforgeKeyStoreKeyPass=${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}
-DforgeSignSHA1=f927f4701bf4c0620c7bd0a501ce278f5e5ecc62
-Pversion=${{ steps.get_release.outputs.name }}
-Pchangelog="[Changelog at ${{ steps.get_release.outputs.html_url }}](${{ steps.get_release.outputs.html_url }})\n\n${{ steps.get_release.outputs.body }}"
-PcurseforgeApiKey=${{ secrets.CURSEFORGE_API_KEY }}
-PmodrinthToken=${{ secrets.MODRINTH_TOKEN }}
-PforgeKeyStore=keystoreForgeMods.jks
-PforgeKeyStoreAlias=${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}
-PforgeKeyStorePass=${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}
-PforgeKeyStoreKeyPass=${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}
-PforgeSignSHA1=f927f4701bf4c0620c7bd0a501ce278f5e5ecc62
- name: Push changes to the wiki
uses: Andrew-Chen-Wang/github-wiki-action@v4
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/gradle_test.yml

This file was deleted.

11 changes: 0 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,6 @@ static def extractMainVersion(String ver) {
return null;
}

tasks.create("displayVars"){
def ck = project.findProperty("curseforgeApiKey")
def mk = project.findProperty("modrinthToken")
def c = project.findProperty("changelog")
def v = project.version
println("CK: ${ck}")
println("MK: ${mk}")
println("C: ${c}")
println("V: ${v}")
}

curseforge {
apiKey = "${project.findProperty("curseforgeApiKey")}"
project {
Expand Down

0 comments on commit 0e58369

Please sign in to comment.