Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/CrimsonMods/JSONRising in…
Browse files Browse the repository at this point in the history
…to master
  • Loading branch information
SkyTech6 committed Dec 9, 2024
2 parents d454ade + c5a467b commit 9d20cf8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
required: true
description: The tag to release.
type: string

jobs:
release_on_thunderstore:
env:
RELEASE_TAG: ${{ github.event.inputs.tag_name || github.event.release.tag_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: "5.x"
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.7
with:
additionalArguments: '/overrideconfig "mode=Mainline"'
- name: Download Release
run: gh release download ${{ env.RELEASE_TAG }} -D ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install tcli
run: dotnet tool install --global tcli
- name: Run tcli
run: tcli publish --token ${{ secrets.THUNDERSTORE_KEY }} --package-version ${RELEASE_TAG:1}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
path: ./build
27 changes: 27 additions & 0 deletions thunderstore.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[config]
schemaVersion = "0.0.1"

[package]
namespace = "skytech6"
name = "JSONRising"
versionNumber = "0.1.0"
description = "GUI JSON Editor for V Rising Mods"
websiteUrl = "https://github.com/CrimsonMods/JSONRising/"
containsNsfwContent = false

[package.dependencies]

[build]
icon = "./.github/images/icon_256.png"
readme = "./README.md"
outdir = "./build"

[[build.copy]]
source = "./dist"
target = ""

[publish]
communities = ["v-rising"]
repository = "https://thunderstore.io"
[publish.categories]
v-rising = ["1-0-update", "mods", "server"]

0 comments on commit 9d20cf8

Please sign in to comment.