Skip to content

Commit

Permalink
Nightly Release on develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hmqgg committed Mar 28, 2021
1 parent 5d2db4d commit e8d50dd
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/nightly-version.js
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));
36 changes: 36 additions & 0 deletions .github/workflows/nighty_release.yml
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 }}

29 changes: 29 additions & 0 deletions module_nightly.json
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"
}

0 comments on commit e8d50dd

Please sign in to comment.