This commit is contained in:
36
.gitea/workflows/release-on-develop.yml
Normal file
36
.gitea/workflows/release-on-develop.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: On-Site VTT - Develop
|
||||
run-name: Run on ${{ github.ref }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||
- name: Replace version in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{version}}"
|
||||
replace: dev-${{ steps.date.outputs.date }}-${{ github.run_number }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Replace branch in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{branch}}"
|
||||
replace: ${{ github.ref }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Pack and release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
on-site-vtt/**
|
||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||
35
.gitea/workflows/release-on-tag.yml
Normal file
35
.gitea/workflows/release-on-tag.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: On-Site VTT - Release
|
||||
run-name: Run for tag ${{ github.ref_name }} on ${{ github.ref }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Replace version in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{version}}"
|
||||
replace: ${{ github.ref_name }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Replace branch in module.json
|
||||
uses: jacobtomlinson/gha-find-replace@v3
|
||||
with:
|
||||
find: "{{branch}}"
|
||||
replace: ${{ github.ref }}
|
||||
include: "on-site-vtt/module.json"
|
||||
- name: Pack and release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
on-site-vtt/**
|
||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||
@@ -1,43 +1,43 @@
|
||||
{
|
||||
"id": "on-site-vtt",
|
||||
"title": "On-Site VTT - Virtual Tabletop, now with less virtual",
|
||||
"description": "A simple module adding functionality to improve playability for multiple players on a single screen/digital map.",
|
||||
"version": "0.0.8",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "11"
|
||||
"id": "on-site-vtt",
|
||||
"title": "On-Site VTT - Virtual Tabletop, now with less virtual",
|
||||
"description": "A simple module adding functionality to improve playability for multiple players on a single screen/digital map.",
|
||||
"version": "{{version}}",
|
||||
"compatibility": {
|
||||
"minimum": "10",
|
||||
"verified": "11"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alexander Weleczka",
|
||||
"url": "https://aweleczka.de/"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"lang": "en",
|
||||
"name": "English",
|
||||
"path": "./lang/en.json"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alexander Weleczka",
|
||||
"url": "https://aweleczka.de/"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"lang": "en",
|
||||
"name": "English",
|
||||
"path": "./lang/en.json"
|
||||
},
|
||||
{
|
||||
"lang": "de",
|
||||
"name": "Deutsch",
|
||||
"path": "./lang/de.json"
|
||||
}
|
||||
],
|
||||
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
||||
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/on-site-vtt/module.json",
|
||||
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/0.0.8/on-site-vtt_0.0.8.zip",
|
||||
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
|
||||
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/README.md",
|
||||
"license" :"https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/LICENSE.txt",
|
||||
"flags": {
|
||||
"allowBugReporter": true
|
||||
},
|
||||
"styles": [
|
||||
"./styles/on-site-vtt.css"
|
||||
],
|
||||
"esmodules": [
|
||||
"./scripts/on-site-vtt.js"
|
||||
]
|
||||
}
|
||||
{
|
||||
"lang": "de",
|
||||
"name": "Deutsch",
|
||||
"path": "./lang/de.json"
|
||||
}
|
||||
],
|
||||
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
||||
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/on-site-vtt/module.json",
|
||||
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/on-site-vtt.zip",
|
||||
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
|
||||
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/README.md",
|
||||
"license": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/LICENSE.txt",
|
||||
"flags": {
|
||||
"allowBugReporter": true
|
||||
},
|
||||
"styles": [
|
||||
"./styles/on-site-vtt.css"
|
||||
],
|
||||
"esmodules": [
|
||||
"./scripts/on-site-vtt.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user