Skip to content

Release

Release #89

Workflow file for this run

name: Release
on:
release:
types: [ published ]
env:
APP_JAVA_VERSION: 17
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.APP_JAVA_VERSION }}
- name: Restore keystore
run: |
echo "${{ secrets.KEYSTORE_FORGE_MODS }}" > keystoreForgeMods.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_FORGE_MODS_PASSPHRASE }}" --batch keystoreForgeMods.jks.asc > keystoreForgeMods.jks
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Build mod file
uses: gradle/[email protected]
with:
cache-disabled: true
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
- name: Push on stores
uses: gradle/[email protected]
with:
cache-disabled: true
arguments: |
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
- name: Push changes to the wiki
uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
path: wiki/