From 1c7cbf1155ea2ce9f5970edbf68ec1df822cfc88 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 16:23:09 +0800 Subject: [PATCH 01/18] Update build.yml --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 084968e3..8fa5f54a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,4 +62,21 @@ jobs: build/*.exe build/*.bin build/*.app/**/* + + release: + runs-on: ubuntu-latest + steps: + - name: Download Artifact + uses: actions/download-artifact@v3 + + - name: Get Time + run: > + echo "TIME=${date +%Y%m%d%H%M%S}" >> $GITHUB_ENV + - name: Create GitHub Release + uses: pipe-cd/actions-gh-release@v2.6.0 + with: + tag: ${{ env.TIME }} + title: Auto Release ${{ env.TIME }} + prerelease: true + release_file: ./** From 839db04639630fb64770f8b875f68b5f498dd6bf Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 16:27:09 +0800 Subject: [PATCH 02/18] Update build.yml --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fa5f54a..1d538311 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,16 +62,18 @@ jobs: build/*.exe build/*.bin build/*.app/**/* - + release: runs-on: ubuntu-latest + needs: + - build steps: - name: Download Artifact uses: actions/download-artifact@v3 - + - name: Get Time run: > - echo "TIME=${date +%Y%m%d%H%M%S}" >> $GITHUB_ENV + echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV - name: Create GitHub Release uses: pipe-cd/actions-gh-release@v2.6.0 From 4c1d446023554ccbf4ac23ab98c16f6e4f7bef05 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 16:45:10 +0800 Subject: [PATCH 03/18] Update build.yml --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d538311..08623e03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,9 +76,10 @@ jobs: echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV - name: Create GitHub Release - uses: pipe-cd/actions-gh-release@v2.6.0 + uses: "marvinpinto/action-automatic-releases@latest" with: - tag: ${{ env.TIME }} - title: Auto Release ${{ env.TIME }} + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ env.TIME }} prerelease: true - release_file: ./** + title: Auto Release ${{ env.TIME }} + files: ./* From 83be52e72bd6806246f583541af697ef056cb28a Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 16:58:30 +0800 Subject: [PATCH 04/18] Update build.yml --- .github/workflows/build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08623e03..61196c3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,8 @@ name: Build with Nuitka on: [push, workflow_dispatch] +permissions: write-all + jobs: build: @@ -22,12 +24,6 @@ jobs: python-version: '3.9' architecture: 'x64' - # - name: Set up GCC - # uses: egor-tensin/setup-gcc@v1 - # with: - # version: latest - # platform: x64 - - name: Install Necessary Packages run: | python -m pip install poetry pip setuptools tomlkit imageio -U @@ -37,6 +33,7 @@ jobs: run: | sudo apt-get install -y libfuse2 + # todo: 使用 pdm # win 上 poetry 的奇怪 bug 导致 poetry install 装不上依赖 - name: Install Project Deps run: | From 579a7b9333bfd8363a5570a5e443fbbee756323f Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 17:26:09 +0800 Subject: [PATCH 05/18] Update build.yml --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61196c3e..52f6faa8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,6 +67,12 @@ jobs: steps: - name: Download Artifact uses: actions/download-artifact@v3 + + - name: Rename Artifacts + run: | + for name in `ls *`; + do mv $name ${name}.zip; + done - name: Get Time run: > @@ -79,4 +85,4 @@ jobs: automatic_release_tag: ${{ env.TIME }} prerelease: true title: Auto Release ${{ env.TIME }} - files: ./* + files: '*.*' From a6f7e95bf19a43c699a9106c1e71b98fe0789fac Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 17:39:41 +0800 Subject: [PATCH 06/18] Update build.yml --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52f6faa8..e5b76722 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,11 +68,11 @@ jobs: - name: Download Artifact uses: actions/download-artifact@v3 - - name: Rename Artifacts - run: | - for name in `ls *`; - do mv $name ${name}.zip; - done + # - name: Rename Artifacts + # run: | + # for name in `ls *`; + # do mv $name ${name}.zip; + # done - name: Get Time run: > From 3564e66557cc4ad49068286808fb4dbc70128667 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 17:57:19 +0800 Subject: [PATCH 07/18] Update build.yml --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5b76722..40813daf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,12 +67,15 @@ jobs: steps: - name: Download Artifact uses: actions/download-artifact@v3 + with: + path: '~/dl' - # - name: Rename Artifacts - # run: | - # for name in `ls *`; - # do mv $name ${name}.zip; - # done + - name: Rename Artifacts + run: | + cd ~/dl + for name in `ls *`; + do mv $name ${name}.zip; + done - name: Get Time run: > @@ -85,4 +88,4 @@ jobs: automatic_release_tag: ${{ env.TIME }} prerelease: true title: Auto Release ${{ env.TIME }} - files: '*.*' + files: '~/dl/*' From 34efc24f68c081872c051a5468f22cf3f68cc797 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:09:47 +0800 Subject: [PATCH 08/18] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40813daf..15ac9793 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,7 @@ jobs: - name: Rename Artifacts run: | cd ~/dl - for name in `ls *`; + for name in `ls`; do mv $name ${name}.zip; done From 3fd87657a83b99e470a7ce256e941a26c652b385 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:24:56 +0800 Subject: [PATCH 09/18] Update build.yml --- .github/workflows/build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15ac9793..eb7807a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,10 +72,7 @@ jobs: - name: Rename Artifacts run: | - cd ~/dl - for name in `ls`; - do mv $name ${name}.zip; - done + rename 's/$/\.zip/' ~/dl/* - name: Get Time run: > From 401057b3108de578ec36dc9f790233cf03601833 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:52:02 +0800 Subject: [PATCH 10/18] FUCK YOU GITHUB ACTIONS --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb7807a6..aaa13fb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,18 +65,19 @@ jobs: needs: - build steps: + - name: Install Rename + run: sudo apt install rename + - name: Download Artifact uses: actions/download-artifact@v3 with: path: '~/dl' - name: Rename Artifacts - run: | - rename 's/$/\.zip/' ~/dl/* + run: rename 's/$/\.zip/' ~/dl/* - name: Get Time - run: > - echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV + run: echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV - name: Create GitHub Release uses: "marvinpinto/action-automatic-releases@latest" From a9c112991a0c95d5e09a1a9379d03f309d0ccc17 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:56:21 +0800 Subject: [PATCH 11/18] just a test how foolish am i --- .github/workflows/build.yml | 106 +++++++++++++++++++----------------- 1 file changed, 56 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaa13fb7..ead0dcd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,51 +14,51 @@ jobs: runs-on: ${{ matrix.os }} - steps: - - name: Check-out repository - uses: actions/checkout@v3 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' - architecture: 'x64' - - - name: Install Necessary Packages - run: | - python -m pip install poetry pip setuptools tomlkit imageio -U - - - name: Install Deps for Linux - if: runner.os == 'Linux' - run: | - sudo apt-get install -y libfuse2 - - # todo: 使用 pdm - # win 上 poetry 的奇怪 bug 导致 poetry install 装不上依赖 - - name: Install Project Deps - run: | - python .github/utils/install_deps.py - - - name: Build Executable - run: > - python -m nuitka - --standalone --enable-plugin=pyqt5 --onefile - --output-dir=build - --show-progress --assume-yes-for-downloads - --disable-console --macos-create-app-bundle - --windows-icon-from-ico=pack.ico --windows-company-name="LxHTT" - --windows-product-name=MCSL2 --windows-file-version=2.0.0 --windows-product-version=2.0.0 - --windows-file-description="A Minecraft Server Launcher" - MCSL2.py - - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ runner.os }} Build - path: | - build/*.exe - build/*.bin - build/*.app/**/* + steps: [] +# - name: Check-out repository +# uses: actions/checkout@v3 + +# - name: Setup Python +# uses: actions/setup-python@v4 +# with: +# python-version: '3.9' +# architecture: 'x64' + +# - name: Install Necessary Packages +# run: | +# python -m pip install poetry pip setuptools tomlkit imageio -U + +# - name: Install Deps for Linux +# if: runner.os == 'Linux' +# run: | +# sudo apt-get install -y libfuse2 + +# # todo: 使用 pdm +# # win 上 poetry 的奇怪 bug 导致 poetry install 装不上依赖 +# - name: Install Project Deps +# run: | +# python .github/utils/install_deps.py + +# - name: Build Executable +# run: > +# python -m nuitka +# --standalone --enable-plugin=pyqt5 --onefile +# --output-dir=build +# --show-progress --assume-yes-for-downloads +# --disable-console --macos-create-app-bundle +# --windows-icon-from-ico=pack.ico --windows-company-name="LxHTT" +# --windows-product-name=MCSL2 --windows-file-version=2.0.0 --windows-product-version=2.0.0 +# --windows-file-description="A Minecraft Server Launcher" +# MCSL2.py + +# - name: Upload Artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: ${{ runner.os }} Build +# path: | +# build/*.exe +# build/*.bin +# build/*.app/**/* release: runs-on: ubuntu-latest @@ -66,12 +66,18 @@ jobs: - build steps: - name: Install Rename - run: sudo apt install rename + run: sudo apt install rename p7zip-full -y - - name: Download Artifact - uses: actions/download-artifact@v3 - with: - path: '~/dl' +# - name: Download Artifact +# uses: actions/download-artifact@v3 +# with: +# path: '~/dl' + + - name: Write File + run: | + cd ~/dl + echo "testfile" > test.txt + 7z a -tzip test test.txt - name: Rename Artifacts run: rename 's/$/\.zip/' ~/dl/* From 442ba7711aaf63ff9c71363044d1fb740f77f486 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:57:00 +0800 Subject: [PATCH 12/18] Update build.yml --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ead0dcd7..0fff56bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,8 @@ jobs: runs-on: ${{ matrix.os }} - steps: [] + steps: + - run: echo hello # - name: Check-out repository # uses: actions/checkout@v3 From a2aee1352c296b7e55f1e3dafc87ce89d011a4e6 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 18:58:42 +0800 Subject: [PATCH 13/18] Update build.yml --- .github/workflows/build.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fff56bb..77e5df8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,17 +5,16 @@ on: [push, workflow_dispatch] permissions: write-all jobs: - build: +# build: - strategy: - fail-fast: false - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] +# strategy: +# fail-fast: false +# matrix: +# os: [macos-latest, ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} +# runs-on: ${{ matrix.os }} - steps: - - run: echo hello +# steps: # - name: Check-out repository # uses: actions/checkout@v3 @@ -63,25 +62,22 @@ jobs: release: runs-on: ubuntu-latest - needs: - - build +# needs: +# - build steps: - name: Install Rename run: sudo apt install rename p7zip-full -y # - name: Download Artifact # uses: actions/download-artifact@v3 -# with: -# path: '~/dl' - name: Write File run: | - cd ~/dl echo "testfile" > test.txt 7z a -tzip test test.txt - name: Rename Artifacts - run: rename 's/$/\.zip/' ~/dl/* + run: rename 's/$/\.zip/' * - name: Get Time run: echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV @@ -93,4 +89,4 @@ jobs: automatic_release_tag: ${{ env.TIME }} prerelease: true title: Auto Release ${{ env.TIME }} - files: '~/dl/*' + files: '*' From f056bb37fae3b02e94b1d6845595b480620c4f5b Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 19:04:05 +0800 Subject: [PATCH 14/18] Update build.yml --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77e5df8b..b6166330 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: # needs: # - build steps: - - name: Install Rename + - name: Install Tools run: sudo apt install rename p7zip-full -y # - name: Download Artifact @@ -74,7 +74,9 @@ jobs: - name: Write File run: | echo "testfile" > test.txt - 7z a -tzip test test.txt + 7z a test.zip test.txt + rm test.txt + mv test.zip test - name: Rename Artifacts run: rename 's/$/\.zip/' * From f29d07452bc641fbe3379d20af1d7f52b06acb5c Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 19:13:39 +0800 Subject: [PATCH 15/18] =?UTF-8?q?=E5=B8=8C=E6=9C=9B=E6=98=AF=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=AC=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我是大傻逼 --- .github/workflows/build.yml | 143 +++++++++++++++++++----------------- 1 file changed, 74 insertions(+), 69 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6166330..6bf3eb4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,90 +5,95 @@ on: [push, workflow_dispatch] permissions: write-all jobs: -# build: - -# strategy: -# fail-fast: false -# matrix: -# os: [macos-latest, ubuntu-latest, windows-latest] - -# runs-on: ${{ matrix.os }} - -# steps: -# - name: Check-out repository -# uses: actions/checkout@v3 - -# - name: Setup Python -# uses: actions/setup-python@v4 -# with: -# python-version: '3.9' -# architecture: 'x64' - -# - name: Install Necessary Packages -# run: | -# python -m pip install poetry pip setuptools tomlkit imageio -U - -# - name: Install Deps for Linux -# if: runner.os == 'Linux' -# run: | -# sudo apt-get install -y libfuse2 - -# # todo: 使用 pdm -# # win 上 poetry 的奇怪 bug 导致 poetry install 装不上依赖 -# - name: Install Project Deps -# run: | -# python .github/utils/install_deps.py - -# - name: Build Executable -# run: > -# python -m nuitka -# --standalone --enable-plugin=pyqt5 --onefile -# --output-dir=build -# --show-progress --assume-yes-for-downloads -# --disable-console --macos-create-app-bundle -# --windows-icon-from-ico=pack.ico --windows-company-name="LxHTT" -# --windows-product-name=MCSL2 --windows-file-version=2.0.0 --windows-product-version=2.0.0 -# --windows-file-description="A Minecraft Server Launcher" -# MCSL2.py - -# - name: Upload Artifacts -# uses: actions/upload-artifact@v3 -# with: -# name: ${{ runner.os }} Build -# path: | -# build/*.exe -# build/*.bin -# build/*.app/**/* + + build: + strategy: + fail-fast: false + + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + + runs-on: ${{ matrix.os }} + + steps: + - name: Check-out repository + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + architecture: 'x64' + + - name: Install Necessary Packages + run: | + python -m pip install poetry pip setuptools tomlkit imageio -U + + - name: Install Deps for Linux + if: runner.os == 'Linux' + run: | + sudo apt-get install -y libfuse2 + + # todo: 使用 pdm + # win 上 poetry 的奇怪 bug 导致 poetry install 装不上依赖 + - name: Install Project Deps + run: | + python .github/utils/install_deps.py + + - name: Build Executable + run: > + python -m nuitka + --standalone --enable-plugin=pyqt5 --onefile + --output-dir=build + --show-progress --assume-yes-for-downloads + --disable-console --macos-create-app-bundle + --windows-icon-from-ico=pack.ico --windows-company-name="LxHTT" + --windows-product-name=MCSL2 --windows-file-version=2.0.0 --windows-product-version=2.0.0 + --windows-file-description="A Minecraft Server Launcher" + MCSL2.py + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ runner.os }} Build + path: | + build/*.exe + build/*.bin + build/*.app/**/* release: runs-on: ubuntu-latest -# needs: -# - build + + needs: + - build + steps: + - uses: szenius/set-timezone@v1.0 + with: + timezoneLinux: "Asia/Shanghai" + - name: Install Tools - run: sudo apt install rename p7zip-full -y - -# - name: Download Artifact -# uses: actions/download-artifact@v3 + run: sudo apt install rename -y - - name: Write File - run: | - echo "testfile" > test.txt - 7z a test.zip test.txt - rm test.txt - mv test.zip test + - name: Download Artifact + uses: actions/download-artifact@v3 - name: Rename Artifacts run: rename 's/$/\.zip/' * - name: Get Time - run: echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV + run: | + echo "TAG_TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV + echo "DISPLAY_TIME=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV - name: Create GitHub Release uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: ${{ env.TIME }} + automatic_release_tag: ${{ env.TAG_TIME }} prerelease: true - title: Auto Release ${{ env.TIME }} + title: Auto Release ${{ env.DISPLAY_TIME }} files: '*' From 24eeef6c091823cd61222fb31f54d1cb04a1bfa3 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 19:29:25 +0800 Subject: [PATCH 16/18] hello? --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bf3eb4b..a86d009b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,6 +80,8 @@ jobs: - name: Download Artifact uses: actions/download-artifact@v3 + with: + path: ./ - name: Rename Artifacts run: rename 's/$/\.zip/' * From ca0e060e7ef396fd279407f04553169b1e5b3338 Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 19:57:32 +0800 Subject: [PATCH 17/18] hope this works --- .github/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a86d009b..79405b49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,15 +76,16 @@ jobs: timezoneLinux: "Asia/Shanghai" - name: Install Tools - run: sudo apt install rename -y + run: sudo apt install p7zip-full -y - - name: Download Artifact + - name: Download Artifacts uses: actions/download-artifact@v3 - with: - path: ./ - - name: Rename Artifacts - run: rename 's/$/\.zip/' * + - name: Compress Artifacts + run: | + for name in `ls` + do 7z a "${name}.zip" "./${name}/*" + done - name: Get Time run: | @@ -98,4 +99,4 @@ jobs: automatic_release_tag: ${{ env.TAG_TIME }} prerelease: true title: Auto Release ${{ env.DISPLAY_TIME }} - files: '*' + files: '*.zip' From b2ce7ebdc5839edcde39bd53693c15ec1a5a576d Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 19 Mar 2023 20:10:34 +0800 Subject: [PATCH 18/18] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79405b49..4c28f7d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: - name: Compress Artifacts run: | - for name in `ls` + for name in ./* do 7z a "${name}.zip" "./${name}/*" done