Skip to content

Commit

Permalink
update publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Mar 11, 2024
1 parent 34bc678 commit 0661981
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 26 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/publish-curseforge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build artifacts
run: ./gradlew build
- name: Upload assets to GitHub
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v3.0
with:
files: 'build/libs/*'
repo-token: ${{ secrets.GH_TOKEN }}
files: "build/libs/*"
repo-token: ${{ secrets.GH_TOKEN }}
59 changes: 44 additions & 15 deletions .github/workflows/publish-modrinth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0661981

Please sign in to comment.