Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rotgruengelb committed Nov 29, 2023
1 parent 4fba2ee commit 9dfc866
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 2 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/snapshot_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Publish to Snapshots OSSRH Sonartype

on: workflow_dispatch

jobs:
publish:
name: Publish Snapshot Artifacts
runs-on: ubuntu-latest

steps:
- name: Set Short ID
id: set_short_id
run: |
SHORT_ID=$(openssl rand -hex 5)
echo "UNIQUE_ID=$SHORT_ID" >> $GITHUB_ENV
shell: bash

# Step 1
# This is optional and only if you want to set the timezone
- name: Setup timezone
run: |
sudo timedatectl set-timezone Europe/Berlin
timedatectl
# Step 2
# Required step
- name: Check out the repo
uses: actions/checkout@v3

# Step 3
# Optional step
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

# Step 4
# Required step
- name: Set up Java 17 JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
architecture: x64
cache: 'gradle'
check-latest: true

# Step 5
# Optional step, but recommended as user often commit the gradle wrapper jar without execute permissions.
- name: Change wrapper permissions
run: chmod +x ./gradlew

# Step 6
# Required step
- name: Decode GPG Key
run: |
mkdir -p ~/.gradle/
echo "${{secrets.OSSRH_GPG_SECRET_KEY}}" > ~/.gradle/secring.gpg.b64
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
# Step 7
# Obviously required step
- name: Publish package
# wrapped the signing.password with single quotes as the password could contain special characters
run: ./gradlew publish -Psigning.keyId='${{secrets.OSSRH_GPG_SECRET_KEY_ID}}' -Psigning.password='${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}' -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) --warn --stacktrace
env:
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
OSSRH_PASSWORD: ${{secrets.OSSRH_TOKEN}}
OSSRH_URL: "https://s01.oss.sonatype.org/content/repositories/snapshots/"
PUBLISH_TYPE: "SNAPSHOT"

# Step 8
# Optional step, will enable you to see what you have released as well here on GitHub
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: release-build-libs
path: build/libs
retention-days: 3
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ allprojects {
}

repositories {
mavenCentral()
url = uri("https://ueaj.dev/maven")
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

Expand All @@ -40,6 +42,7 @@ allprojects {
include(modImplementation(fabricApi.module("fabric-api-base", project.fabric_version)))
include(modImplementation(fabricApi.module("fabric-command-api-v2", project.fabric_version)))
include(modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))
include(modImplementation("net.devtech:arrp:0.8.0")) //
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.2+build.4
loader_version=0.14.24

# Mod Properties
mod_version=3.0.0
mod_version=3.0.1
mod_minecraft_base_version=1.20.2

# Maven/Publishing
Expand Down
Binary file modified src/main/resources/assets/quirl/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/assets/quirl/logo.xcf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "quirl",
"version": "${version}",
"name": "quirl",
"description": "A Minecraft FabricMC utility Mod and Library containing tools that help with adding to existing Minecraft mechanics.",
"description": "A Minecraft FabricMC Utility and Library Mod. (some useful stuff, you know).",
"authors": [
"rotgruengelb"
],
Expand Down

0 comments on commit 9dfc866

Please sign in to comment.