mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-23 21:50:05 +00:00
Update README with a lot more documentation and details.
Put the multimc zip in the github release.
This commit is contained in:
1 parent
3521ce98c5
commit
281d0c19c4
3 files changed
+218
-8
No files matched your search
@@ -10,5 +10,61 @@ permissions:
|
||||
|
||||
jobs:
|
||||
release-tags:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
|
||||
secrets: inherit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout mod repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 32
|
||||
|
||||
- name: Set release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Setup the workspace
|
||||
run: ./gradlew --info --stacktrace ${{ inputs.workspace }}
|
||||
|
||||
- name: Build the mod
|
||||
run: ./gradlew --info --stacktrace build
|
||||
|
||||
# Continue on error in the following steps to make sure releases still get made even if one of the methods fails
|
||||
|
||||
- name: Delete old release if it already exists
|
||||
run: gh release delete --yes "${RELEASE_VERSION}"
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Release under current tag
|
||||
run: |
|
||||
export "CHANGELOG_FILE=$(mktemp --suffix=.md)"
|
||||
echo "CHANGELOG_FILE=${CHANGELOG_FILE}" >> $GITHUB_ENV
|
||||
gh api --method POST -H "Accept: application/vnd.github+json" \
|
||||
"/repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
|
||||
-f tag_name="${RELEASE_VERSION}" \
|
||||
--jq ".body" > "${CHANGELOG_FILE}"
|
||||
cat "${CHANGELOG_FILE}"
|
||||
gh release create "${RELEASE_VERSION}" -F "${CHANGELOG_FILE}" ./build/libs/*.jar ./build/distributions/*.zip
|
||||
shell: bash
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Publish to Maven, Modrinth and CurseForge
|
||||
run: ./gradlew --info --stacktrace build publish
|
||||
continue-on-error: true
|
||||
env:
|
||||
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||
if: ${{ env.MAVEN_USER != '' }}
|
||||
Reference in new issue
Block a user