-
-
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.
Potentially fix the publishing to snapshot repository
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 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 to Snapshot Repository" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Minecraft version from the version manifest" | ||
required: true | ||
|
||
jobs: | ||
generate-and-publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:16-jdk | ||
options: --user root | ||
steps: | ||
- name: Cache build and application cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
./build | ||
./cache | ||
key: hashed-mojmap | ||
- 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 -PminecraftVersion="${{ github.event.inputs.version }}" --stacktrace | ||
env: | ||
MAVEN_URL: ${{ secrets.SNAPSHOTS_URL }} | ||
MAVEN_USERNAME: ${{ secrets.SNAPSHOTS_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.SNAPSHOTS_PASSWORD }} |
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