fix
This commit is contained in:
parent
e1829bdc56
commit
956e836e51
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -61,19 +61,22 @@ jobs:
|
||||
ls -alh
|
||||
- name: Zip
|
||||
run: |
|
||||
ls ./server
|
||||
zip ${{ env.ZIPNAME }}.zip ./server/${{ env.FILENAME }} ./server/${{ env.TGFILENAME }} ./server/${{ env.WEBFILENAME }} ./server/${{ env.WCFILENAME }}
|
||||
cd ./server
|
||||
mkdir plugins
|
||||
mv ${{ env.TGFILENAME }} plugins/
|
||||
mv ${{ env.WEBFILENAME }} plugins/
|
||||
mv ${{ env.WCFILENAME }} plugins/
|
||||
zip -r ${{ env.ZIPNAME }}.zip ${{ env.FILENAME }} plugins
|
||||
ls
|
||||
ls ./server
|
||||
- name: Upload files to Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ env.ZIPNAME }}
|
||||
path: ${{ env.ZIPNAME }}.zip
|
||||
path: server/${{ env.ZIPNAME }}.zip
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ env.ZIPNAME }}.zip
|
||||
file: server/${{ env.ZIPNAME }}.zip
|
||||
tag: ${{ github.ref }}
|
||||
file_glob: true
|
||||
@ -142,7 +142,7 @@ func Init() {
|
||||
|
||||
pluginNo := 1
|
||||
filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
||||
if info != nil && !info.IsDir() && !strings.Contains(info.Name(), ".") {
|
||||
if info != nil && !info.IsDir() && (!strings.Contains(info.Name(), ".") || strings.Contains(info.Name(), ".exe")) {
|
||||
|
||||
socketPath := fmt.Sprintf("%s/%d.socket", root, pluginNo)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user