"Implement Shadow Inventory and Tag Support for Items" #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build Release" | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- { uses: actions/checkout@v2, with: { fetch-depth: 0 } } | |
- { | |
name: "Set up JDK 17", | |
uses: actions/setup-java@v2, | |
with: { distribution: "temurin", java-version: "17" }, | |
} | |
- { | |
name: "Build with Gradle", | |
id: build, | |
run: "chmod +x gradlew && ./gradlew build", | |
} | |
- name: Generate Changelog | |
id: changelog | |
run: echo "::set-output name=changelog::$(git log --pretty=format:"%h %s" -1)" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ steps.build.outputs.version }} | |
release_name: Release Darken Depths ${{ steps.build.outputs.version }} | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: "build/libs/darkendepths-${{ steps.build.outputs.version }}.jar" | |
asset_name: "darkendepths-${{ steps.build.outputs.version }}.jar" | |
asset_content_type: application/java-archive | |
- name: mc-publish | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-id: walrejrR | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
modrinth-files: "build/libs/darkendepths-${{ steps.build.outputs.version }}.jar" | |
name: "Darken Depths ${{ steps.build.outputs.version }}" | |
version: ${{ steps.build.outputs.version }} | |
version-type: beta | |
changelog: ${{steps.build.outputs.changelog}} | |
game-version: 1.20.2 | |
loaders: fabric | |
dependencies: | |
[email protected](required) | |
[email protected](required) | |
[email protected]+1.20.2(required){modrinth:P7dR8mSH}{curseforge:306612}#(ignore:github) |