Skip to content

Commit

Permalink
Add modrinth and publish gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBread committed Dec 31, 2020
1 parent 6f2fe30 commit 490a3b5
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Mod publication

on: [ workflow_dispatch ]

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- run: chmod +x gradlew
- name: Build
run: ./gradlew build

bintray:
name: Bintray Publication
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- run: chmod +x gradlew
- name: Publish
run: ./gradlew bintrayUpload
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}

modrinth:
name: Modrinth Publication
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- run: chmod +x gradlew
- name: Publish
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# VanillaTweaks Downloader

**DISCLAIMER: None of the content that can be downloaded from the mod was created by me. Everything (but the mod) was created by the VanillaTweaks team.**

[ ![GitHub release](https://img.shields.io/github/v/release/ByMartrixX/VTDownloader?color=blue&include_prereleases&label=download&style=flat-square) ](https://github.com/ByMartrixx/VTDownloader/releases/latest)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ByMartrixX/VTDownloader/Java%20CI%20with%20Gradle?style=flat-square)

<img src="https://i.imgur.com/77kxz8x.png" width="150">

Pick and download [Vanilla Tweaks](https://vanillatweaks.net) resource packs directly from your Minecraft Client!
From the game menu, go to Options > Resource Packs > Download VT Pack, pick your texture packs, and press download. The pack will be directly downloaded to your resource packs folder.

Suggestions? [Start a discussion](https://github.com/ByMartrixx/VTDownloader/discussions/new) or [Open an issue](https://github.com/ByMartrixx/VTDownloader/issues/new)

<sup>To the VanillaTweaks team: if this mod breaks any term, please notify me on Discord (MartrixX#2970)<sup/>

## [Credits](/credits.txt)

#### Vanilla Tweaks: https://vanillatweaks.net

### Planned features

- Incompatible packs warning
- Editing packs from the Resource Packs screen
- Share button
- Datapacks
20 changes: 19 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.5'
id 'com.modrinth.minotaur' version '1.1.0'
}

import com.modrinth.minotaur.TaskModrinthUpload

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

Expand Down Expand Up @@ -64,11 +67,26 @@ jar {
from "LICENSE"
}

task modrinth (type: TaskModrinthUpload) {
token = project.hasProperty('modrinthToken') ? project.property('modrinthToken') : System.getenv('MODRINTH_TOKEN')
projectId = '1E2sq1cp'
versionNumber = project.version
uploadFile = remapJar
addGameVersion('1.16')
addGameVersion('1.16.1')
addGameVersion('1.16.2')
addGameVersion('1.16.3')
addGameVersion('1.16.4')
addLoader('fabric')
addFile(sourcesJar)
addFile(remapSourcesJar)
}

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
publications = ["mavenJava"]
publish = false
publish = true
pkg {
repo = 'maven'
name = 'VTDownloader'
Expand Down
2 changes: 2 additions & 0 deletions credits.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Credits:
Vanilla Tweaks: https://vanillatweaks.net
Binary file modified src/main/resources/assets/vt_downloader/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
],

"depends": {
"fabricloader": ">=0.7.4",
"fabric": "*",
"minecraft": "1.16.x"
"fabricloader": ">=0.7.4"
}
}

0 comments on commit 490a3b5

Please sign in to comment.