Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
New workflows (#61)
Browse files Browse the repository at this point in the history
* try new workflow

* try new workflow2

* try new workflow3

* try new workflow4

* release 0.0.5 +u

* update workflow5 +u

* update workflow6 +u

* update workflow7 +u

* update workflow8 +u
  • Loading branch information
CoolLoong authored Feb 23, 2023
1 parent 432d07f commit 33fc99a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
44 changes: 40 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,53 @@ jobs:
mkdir $GITHUB_WORKSPACE/src
mv $GITHUB_WORKSPACE/@LLSELib $GITHUB_WORKSPACE/src/@LLSELib
- name: zip full plugin
run: |
cd src
zip -r @LLSELib-full.zip @LLSELib
cd ..
- name: Archive LLSELib-full
uses: actions/upload-artifact@v3
with:
name: LLSELib-full
path: src/@LLSELib

- name: compress
uses: nizarmah/[email protected]
with:
overwrite: true
directory: ./src/@LLSELib
directory: src/@LLSELib
js_engine: uglify-js

- name: upload artifact
- name: zip minify plugin
run: |
cd src
rm -rf @LLSELib/jsconfig.json
zip -r @LLSELib.zip @LLSELib
cd ..
- name: Archive LLSELib
uses: actions/upload-artifact@v3
with:
name: LLSELib
path: |
src
!**/jsconfig.json
src/@LLSELib
!**/jsconfig.json
- name: Read version in plugin.yml
id: plugin-data
uses: CumulusDS/[email protected]
with:
file: src/@LLSELib/plugin.yml
version: version

- name: Release new version
uses: ncipollo/release-action@v1
if: github.event_name == 'push' && contains(github.ref_name, 'master') && contains(github.event.commits[0].message, '+u')
with:
artifacts: "src/@LLSELib-full.zip,src/@LLSELib.zip"
tag: ${{ steps.plugin-data.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
commit: ${{ github.ref_name }}
allowUpdates: true
2 changes: 1 addition & 1 deletion @LLSELib/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: LLSELib
main: index.js # JS入口文件,应该导出一个main函数(如main.js)
version: "0.0.4"
version: "0.0.5"
api: [ "1.0.13" ] # API版本,PNX从1.0.13起开始支持JS插件
load: STARTUP # 插件加载顺序,只能填写 STARTUP 或 POSTWORLD
# STARTUP: 此时服务器刚启动,地图尚未加载,通常用于依赖库
Expand Down

0 comments on commit 33fc99a

Please sign in to comment.