Starting pipeline
This commit is contained in:
0
.gitea/workflows/release-on-develop.yml
Normal file
0
.gitea/workflows/release-on-develop.yml
Normal file
31
.gitea/workflows/release-on-tag.yml
Normal file
31
.gitea/workflows/release-on-tag.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: On-Site VTT - Release
|
||||||
|
run-name: Run for tag ${{ github.ref_name }} on ${{ github.ref }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
tags: [0-9]+.[0-9]+.[0-9]+
|
||||||
|
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}}'
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
"id": "on-site-vtt",
|
"id": "on-site-vtt",
|
||||||
"title": "On-Site VTT - Virtual Tabletop, now with less virtual",
|
"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.",
|
"description": "A simple module adding functionality to improve playability for multiple players on a single screen/digital map.",
|
||||||
"version": "0.0.1",
|
"version": "{{version}}",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "11"
|
"verified": "11"
|
||||||
@@ -26,11 +26,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
|
||||||
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/main/on-site-vtt/module.json",
|
"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/packages",
|
"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",
|
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
|
||||||
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/main/README.md",
|
"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/main/LICENSE.txt",
|
"license" :"https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/LICENSE.txt",
|
||||||
"flags": {
|
"flags": {
|
||||||
"allowBugReporter": true
|
"allowBugReporter": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user