-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var fs = require('fs'); | ||
let date = new Date(); | ||
let json = JSON.parse(fs.readFileSync('./module_nightly.json', 'utf8')); | ||
json.version = `${date.getUTCFullYear()}.${date.getUTCMonth() + 1}.${date.getUTCDate()}.${date.getUTCHours()}.${date.getUTCMinutes()}.${date.getUTCSeconds()}`; | ||
fs.writeFileSync('./module.json', JSON.stringify(json)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Nightly Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
name: Upload Release Asset | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
- name: Overwrite Manifest | ||
id: nightly-version | ||
shell: bash | ||
run: node ./.github/workflows/nightly-version.js | ||
- name: Build project | ||
id: build-zip | ||
run: | | ||
zip -r bililive.zip module.json bililive.js lang/ modules/ | ||
- name: Nightly Release | ||
id: nightly_release | ||
uses: ncipollo/release-action@v1 | ||
if: endsWith(github.ref, 'develop') | ||
with: | ||
name: nightly | ||
tag: nightly | ||
allowUpdates: true | ||
replacesArtifacts: true | ||
artifacts: 'module.json,bililive.zip' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "bililive", | ||
"title": "Bilibili Live Danmaku", | ||
"description": "【FVTT-CN/hmqgg 开发】整合 Bilibili 直播间弹幕到 FVTT OOC 聊天中。\nIntegrate Bilibili Live Room Danmaku into Foundry VTT OOC Chat Logs.", | ||
"author": "hmqgg <[email protected]> [FVTT-CN]", | ||
"version": "2021.3.28.10.0.0", | ||
"minimumCoreVersion": "0.7.9", | ||
"compatibleCoreVersion": "0.7.9", | ||
"esmodules": [ | ||
"./bililive.js", | ||
"./modules/danmaku.js" | ||
], | ||
"languages": [ | ||
{ | ||
"lang": "en", | ||
"name": "English", | ||
"path": "/lang/en.json" | ||
}, | ||
{ | ||
"lang": "cn", | ||
"name": "中文", | ||
"path": "/lang/cn.json" | ||
} | ||
], | ||
"url": "https://github.com/fvtt-cn/FoundryVTT-BiliLive-Danmaku", | ||
"changelog": "https://github.com/fvtt-cn/FoundryVTT-BiliLive-Danmaku/blob/main/CHANGELOG.md", | ||
"manifest": "https://github.com/fvtt-cn/FoundryVTT-BiliLive-Danmaku/releases/download/nightly/module.json", | ||
"download": "https://github.com/fvtt-cn/FoundryVTT-BiliLive-Danmaku/releases/download/nightly/bililive.zip" | ||
} |