-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow publishing experimental versions from a zip url
- Loading branch information
1 parent
a137bcd
commit 40f8527
Showing
4 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Generate and publish" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
url: | ||
description: "URL to the zip containing the Minecraft version json" | ||
required: true | ||
|
||
jobs: | ||
generate-and-publish: | ||
name: Generate and publish for Minecraft ${{ github.event.inputs.version }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:16-jdk | ||
options: --user root | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Generate and publish mappings | ||
run: ./gradlew publish -PversionZipUrl="${{ github.event.inputs.url }}" --stacktrace | ||
env: | ||
MAVEN_URL: ${{ secrets.MAVEN_URL }} | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
- name: Refresh Meta | ||
uses: fjogeleit/http-request-action@master | ||
with: | ||
url: ${{ secrets.META_UPDATE_URL }} | ||
method: 'GET' | ||
preventFailureOnNoResponse: true |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Dummy variables. Pass the actual value via -P<variable>="<value>" | ||
minecraftVersion = | ||
versionJsonUrl = | ||
versionZipUrl = |