-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34bc678
commit 0661981
Showing
3 changed files
with
69 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 |
---|---|---|
|
@@ -19,25 +19,39 @@ jobs: | |
run: chmod +x ./gradlew | ||
- name: Build artifacts | ||
run: ./gradlew build | ||
- name: publish artifacts | ||
uses: Kir-Antipov/[email protected] | ||
- uses: BrycensRanch/read-properties-action@v1 | ||
id: gradle_props | ||
with: | ||
file: gradle.properties | ||
all: true | ||
- name: Publish fabric artifacts | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
curseforge-id: 490812 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
files-primary: build/libs/!(*-@(dev|sources)).jar | ||
files: | | ||
build/libs/artifality-${{ github.event.release.tag_name }}.jar | ||
build/libs/artifality-${{ github.event.release.tag_name }}-sources.jar | ||
name: ${{ github.event.release.tag_name }}+fabric | ||
version: ${{ github.event.release.tag_name }}+fabric | ||
|
||
version-type: beta | ||
loaders: | | ||
fabric | ||
game-versions: | | ||
1.18.2 | ||
quilt | ||
game-versions: ${{ steps.gradle_props.outputs.minecraft_version_range_fabric }} | ||
game-version-filter: releases | ||
|
||
dependencies: | | ||
fabric-api | depends | * | ||
trinkets-fabric | depends | * | ||
fabric-api | ||
trinkets | ||
java: | | ||
17 | ||
retry-attempts: 2 | ||
retry-delay: 10000 | ||
retry-delay: 10000 | ||
fail-mode: skip |
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 |
---|---|---|
|
@@ -5,24 +5,53 @@ on: | |
types: | ||
- published | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: eclipse-temurin:17-jdk | ||
options: --user root | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: apt update && apt install git -y && git --version | ||
- uses: actions/checkout@v2 | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
fetch-depth: 0 | ||
java-version: 17 | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- run: ./gradlew build modrinth --stacktrace | ||
env: | ||
CHANGELOG: ${{ github.event.release.body }} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
- name: Build artifacts | ||
run: ./gradlew build | ||
- uses: BrycensRanch/read-properties-action@v1 | ||
id: gradle_props | ||
with: | ||
file: gradle.properties | ||
all: true | ||
- name: Publish fabric artifacts | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: IsKsViE2 | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
files: | | ||
fabric/build/libs/artifality-${{ github.event.release.tag_name }}.jar | ||
fabric/build/libs/artifality-${{ github.event.release.tag_name }}-sources.jar | ||
name: ${{ github.event.release.tag_name }}+fabric | ||
version: ${{ github.event.release.tag_name }}+fabric | ||
|
||
version-type: beta | ||
loaders: | | ||
fabric | ||
quilt | ||
game-versions: ${{ steps.gradle_props.outputs.minecraft_version_range_fabric }} | ||
game-version-filter: releases | ||
|
||
dependencies: | | ||
fabric-api | ||
trinkets | ||
java: | | ||
17 | ||
retry-attempts: 2 | ||
retry-delay: 10000 | ||
fail-mode: skip |