Compare commits
22 Commits
72558ca3b7
...
dev-2023-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa3c98d2b7
|
||
|
|
69970fc5b6
|
||
|
|
95d74f841a
|
||
|
|
e62d45a936
|
||
|
|
6e16d82d05
|
||
|
|
0ca0dab066
|
||
|
|
5ce7d937e8
|
||
|
|
973a06e0b5
|
||
|
|
25716a3cdb
|
||
|
|
903695dc95
|
||
|
|
6b7c8adc47
|
||
|
|
f274f6f237
|
||
|
|
09c2a51e1e
|
||
|
|
70778f0e4f
|
||
|
|
aff154c514
|
||
|
|
e8dc220e8c
|
||
|
|
47240cc1b9
|
||
|
|
81ccfca6e3
|
||
|
|
fca0144f01
|
||
|
|
86a11a92c2
|
||
|
|
8f3bd53a48
|
||
|
|
8c28884fcb
|
@@ -9,28 +9,40 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Replace version in module.json
|
||||||
uses: jacobtomlinson/gha-find-replace@v3
|
uses: jacobtomlinson/gha-find-replace@v3
|
||||||
with:
|
with:
|
||||||
find: "{{version}}"
|
find: "{{version}}"
|
||||||
replace: dev-${{ steps.date.outputs.date }}-${{ github.run_number }}
|
replace: dev-${{ steps.date.outputs.date }}
|
||||||
include: "on-site-vtt/module.json"
|
include: "on-site-vtt/module.json"
|
||||||
- name: Replace branch in module.json
|
- name: Replace branch in module.json
|
||||||
uses: jacobtomlinson/gha-find-replace@v3
|
uses: jacobtomlinson/gha-find-replace@v3
|
||||||
with:
|
with:
|
||||||
find: "{{branch}}"
|
find: "{{branch}}"
|
||||||
replace: ${{ github.ref }}
|
replace: ${{ github.ref_name }}
|
||||||
include: "on-site-vtt/module.json"
|
include: "on-site-vtt/module.json"
|
||||||
- name: Pack and release
|
- name: Pack archive
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: montudor/action-zip@v1
|
||||||
with:
|
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: |-
|
files: |-
|
||||||
on-site-vtt/**
|
"on-site-vtt/module.json"
|
||||||
|
on-site-vtt.zip
|
||||||
|
pre_release: true
|
||||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -28,8 +32,10 @@ jobs:
|
|||||||
replace: ${{ github.ref }}
|
replace: ${{ github.ref }}
|
||||||
include: "on-site-vtt/module.json"
|
include: "on-site-vtt/module.json"
|
||||||
- name: Pack and release
|
- name: Pack and release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: actions/release-action@main
|
||||||
with:
|
with:
|
||||||
|
title: ${{ github.ref_name }}
|
||||||
|
pre_release: false
|
||||||
|
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||||
files: |-
|
files: |-
|
||||||
on-site-vtt/**
|
on-site-vtt/**
|
||||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
function inti() {
|
function init() {
|
||||||
if (game.modules.get("on-site-vtt")?.active) {
|
if (game.modules.get("on-site-vtt")?.active) {
|
||||||
console.log("on-site-vtt | Enabled");
|
console.log("on-site-vtt | Enabled");
|
||||||
|
|
||||||
@@ -23,6 +23,9 @@ function inti() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ready() {
|
||||||
|
console.log("on-site-vtt | Ready");
|
||||||
|
}
|
||||||
|
|
||||||
function rotateView() {
|
function rotateView() {
|
||||||
if (document.getElementsByTagName("body")[0].className.includes("nsvRotate")) {
|
if (document.getElementsByTagName("body")[0].className.includes("nsvRotate")) {
|
||||||
@@ -35,3 +38,4 @@ function rotateView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Hooks.on("init", init);
|
Hooks.on("init", init);
|
||||||
|
Hooks.on("ready", ready);
|
||||||
Reference in New Issue
Block a user