27 Commits

Author SHA1 Message Date
Alexander
fa3c98d2b7 Adds ready method and fixes spelling
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m44s
2023-12-11 13:11:30 +01:00
Alexander
69970fc5b6 Adds module.json to release output
All checks were successful
On-Site VTT - Develop / build (push) Successful in 3m17s
2023-12-11 12:15:02 +01:00
Alexander
95d74f841a zip issues
All checks were successful
On-Site VTT - Develop / build (push) Successful in 3m13s
2023-12-11 10:13:53 +01:00
Alexander
e62d45a936 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m27s
2023-12-11 09:59:03 +01:00
Alexander
6e16d82d05 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m24s
2023-12-11 09:17:11 +01:00
Alexander
0ca0dab066 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 7s
2023-12-11 09:15:10 +01:00
Alexander
5ce7d937e8 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m47s
2023-12-11 09:09:04 +01:00
Alexander
973a06e0b5 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m47s
2023-12-11 09:01:51 +01:00
Alexander
25716a3cdb zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 3m7s
2023-12-11 08:47:02 +01:00
Alexander
903695dc95 zip issues
All checks were successful
On-Site VTT - Develop / build (push) Successful in 1m12s
2023-12-11 08:28:48 +01:00
Alexander
6b7c8adc47 zip issues
All checks were successful
On-Site VTT - Develop / build (push) Successful in 1m26s
2023-12-11 08:26:01 +01:00
Alexander
f274f6f237 zip issues
All checks were successful
On-Site VTT - Develop / build (push) Successful in 1m12s
2023-12-11 08:23:18 +01:00
Alexander
09c2a51e1e zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m19s
2023-12-11 08:20:10 +01:00
Alexander
70778f0e4f zip issues
Some checks are pending
On-Site VTT - Develop / build (push) Waiting to run
2023-12-11 08:16:10 +01:00
Alexander
aff154c514 zip issues
Some checks are pending
On-Site VTT - Develop / build (push) Waiting to run
2023-12-10 23:18:42 +01:00
Alexander
e8dc220e8c zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m2s
2023-12-10 23:13:22 +01:00
Alexander
47240cc1b9 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 2m56s
2023-12-10 23:06:33 +01:00
Alexander
81ccfca6e3 zip issues
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m33s
2023-12-10 23:00:58 +01:00
Alexander
fca0144f01 zip issues
All checks were successful
On-Site VTT - Develop / build (push) Successful in 1m25s
2023-12-10 22:58:01 +01:00
Alexander
86a11a92c2 seperate packing
All checks were successful
On-Site VTT - Develop / build (push) Successful in 1m23s
2023-12-10 22:54:30 +01:00
Alexander
8f3bd53a48 seperate packing
Some checks failed
On-Site VTT - Develop / build (push) Failing after 1m19s
2023-12-10 22:47:18 +01:00
Alexander
8c28884fcb Starting pipeline
Some checks failed
On-Site VTT - Develop / build (push) Failing after 3m44s
2023-12-10 22:31:14 +01:00
Alexander
72558ca3b7 Forward from main
Some checks failed
On-Site VTT - Develop / build (push) Failing after 23s
2023-12-10 22:18:11 +01:00
Alexander
c18dc98d8e Starting pipeline
Some checks failed
On-Site VTT - Release / build (push) Failing after 2m9s
2023-12-10 22:15:11 +01:00
Alexander
46b9c08221 Starting pipeline 2023-12-10 22:08:32 +01:00
Alexander
29ace6cc3f Starting pipeline 2023-12-10 22:04:07 +01:00
Alexander
6bef9a2030 Starting pipeline 2023-12-10 22:01:34 +01:00
4 changed files with 136 additions and 43 deletions

View File

@@ -0,0 +1,48 @@
name: On-Site VTT - Develop
run-name: Run on ${{ github.ref }}
on:
push:
branches:
- develop
jobs:
build:
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S')"
- 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: dev-${{ steps.date.outputs.date }}
include: "on-site-vtt/module.json"
- name: Replace branch in module.json
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "{{branch}}"
replace: ${{ github.ref_name }}
include: "on-site-vtt/module.json"
- name: Pack archive
uses: montudor/action-zip@v1
with:
args: zip -r on-site-vtt.zip on-site-vtt
- name: publish release
uses: https://gitea.aweleczka.de/actions/release-action@main
with:
title: dev-${{ steps.date.outputs.date }}
tag_name: dev-${{ steps.date.outputs.date }}
files: |-
"on-site-vtt/module.json"
on-site-vtt.zip
pre_release: true
api_key: "${{secrets.RELEASE_TOKEN}}"

View File

@@ -0,0 +1,41 @@
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: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- 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: actions/release-action@main
with:
title: ${{ github.ref_name }}
pre_release: false
api_key: "${{secrets.RELEASE_TOKEN}}"
files: |-
on-site-vtt/**

View File

@@ -2,7 +2,7 @@
"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",
"version": "{{version}}",
"compatibility": {
"minimum": "10",
"verified": "11"
@@ -26,11 +26,11 @@
}
],
"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",
"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/develop/README.md",
"license" :"https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/develop/LICENSE.txt",
"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
},

View File

@@ -1,5 +1,5 @@
function inti() {
function init() {
if (game.modules.get("on-site-vtt")?.active) {
console.log("on-site-vtt | Enabled");
@@ -23,6 +23,9 @@ function inti() {
}
}
function ready() {
console.log("on-site-vtt | Ready");
}
function rotateView() {
if (document.getElementsByTagName("body")[0].className.includes("nsvRotate")) {
@@ -35,3 +38,4 @@ function rotateView() {
}
Hooks.on("init", init);
Hooks.on("ready", ready);