From 88bbe5aa4a254740ccd393b32647370eeabcaa69 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:51:08 +0800 Subject: [PATCH 01/29] Create compile.yml --- .github/workflows/compile.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..90063f1 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,23 @@ +name: Compile + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 00fdc228f675f19077371ae4ca3231453197188e Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:03:02 +0800 Subject: [PATCH 02/29] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 90063f1..527c335 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,9 +2,9 @@ name: Compile on: push: - branches: [ "master" ] + branches: [ "tauri" ] pull_request: - branches: [ "master" ] + branches: [ "tauri" ] workflow_dispatch: env: From 8592e160ad1583a6191883f4e9daa36403487f7c Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:08:05 +0800 Subject: [PATCH 03/29] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 527c335..cc6cec2 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,9 +2,9 @@ name: Compile on: push: - branches: [ "tauri" ] + branches: [ "workflow" ] pull_request: - branches: [ "tauri" ] + branches: [ "workflow" ] workflow_dispatch: env: From 579a120ab4bb896239ec4acac7a494ab62a6e841 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:37:55 +0800 Subject: [PATCH 04/29] Update compile.yml --- .github/workflows/compile.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index cc6cec2..ed6d1f6 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -16,8 +16,19 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: action/setup-node@v4.0.3 + with: + node-version: 16 + + - name: Setup pnpm + uses: pnpm/action-setup@v4.0.0 + with: + version: 7 + + - name: compile + run: pnpm run build + From b6eccfe3a9f172475df0c459d315a2d246a8acb3 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:39:51 +0800 Subject: [PATCH 05/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index ed6d1f6..031cfc9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: Install Node.js - uses: action/setup-node@v4.0.3 + uses: actions/setup-node@v4.0.3 with: node-version: 16 From cbda77b253339b626dac3a72b1fdfec1944b8db7 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:41:41 +0800 Subject: [PATCH 06/29] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 031cfc9..073b920 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -28,6 +28,7 @@ jobs: uses: pnpm/action-setup@v4.0.0 with: version: 7 + run_install: true - name: compile run: pnpm run build From 88fd1c07627d808641012363c1b1dabbb4089e16 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:22:43 +0800 Subject: [PATCH 07/29] Update compile.yml --- .github/workflows/compile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 073b920..04bdbdd 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -28,7 +28,10 @@ jobs: uses: pnpm/action-setup@v4.0.0 with: version: 7 - run_install: true + run_install: false + + - name: Install dependencies + run: pnpm install - name: compile run: pnpm run build From 629dbebe39139f368e01fcac296f6ec575730b03 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:35:43 +0800 Subject: [PATCH 08/29] Update compile.yml --- .github/workflows/compile.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 04bdbdd..83c8935 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,9 +2,9 @@ name: Compile on: push: - branches: [ "workflow" ] + branches: [ "master", "workflow" ] pull_request: - branches: [ "workflow" ] + branches: [ "master", "workflow" ] workflow_dispatch: env: @@ -22,12 +22,12 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4.0.3 with: - node-version: 16 + node-version: 18 - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: - version: 7 + version: 8 run_install: false - name: Install dependencies From 2f54aa7154aeb4d0c5cc252c506f0ed9bb3b0714 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:58:37 +0800 Subject: [PATCH 09/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 83c8935..22231ff 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -27,7 +27,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: - version: 8 + version: 8.9.0 run_install: false - name: Install dependencies From 375c2f9756223c4af78cfd3df84a8daa11a6321e Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:21:30 +0800 Subject: [PATCH 10/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 22231ff..bd1e0f1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -27,7 +27,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: - version: 8.9.0 + version: 7 run_install: false - name: Install dependencies From 0175f469fc3796fe1885589d04084f20321b15e8 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:27:35 +0800 Subject: [PATCH 11/29] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index bd1e0f1..5e1c1f5 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -29,6 +29,7 @@ jobs: with: version: 7 run_install: false + useLockFile: false - name: Install dependencies run: pnpm install From dfed9ced50676f7e85a2ae57c3099e3bb99d006b Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:13:04 +0800 Subject: [PATCH 12/29] Update compile.yml --- .github/workflows/compile.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 5e1c1f5..58f090d 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -29,10 +29,9 @@ jobs: with: version: 7 run_install: false - useLockFile: false - name: Install dependencies - run: pnpm install + run: pnpm install --ignore-scripts --ignore-optional - name: compile run: pnpm run build From 27308a668c6d74c8e4fbcb84b7e5b31239824ddf Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:19:13 +0800 Subject: [PATCH 13/29] Update compile.yml --- .github/workflows/compile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 58f090d..fd52ea4 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -24,6 +24,9 @@ jobs: with: node-version: 18 + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: @@ -31,7 +34,7 @@ jobs: run_install: false - name: Install dependencies - run: pnpm install --ignore-scripts --ignore-optional + run: pnpm install --no-frozen-lockfile - name: compile run: pnpm run build From de98382a2dad49160f3866798c1102ab278dd60b Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:47:39 +0800 Subject: [PATCH 14/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index fd52ea4..4b5b2c3 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -13,7 +13,7 @@ env: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout From ffc1f902c70451eae57f4e7bf3042a65a0d527e9 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:49:51 +0800 Subject: [PATCH 15/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 4b5b2c3..3e9b228 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -37,5 +37,5 @@ jobs: run: pnpm install --no-frozen-lockfile - name: compile - run: pnpm run build + run: pnpm run tauri-build From 98f095e560055b4a303e9cf4af29a8a9271f9baa Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:52:51 +0800 Subject: [PATCH 16/29] Update compile.yml --- .github/workflows/compile.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 3e9b228..306adc9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -38,4 +38,10 @@ jobs: - name: compile run: pnpm run tauri-build + + - uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + releaseId: ${{ needs.create-release.outputs.release_id }} From f33c9f1cf7034f2327427e95e5b7c24984d7542d Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:57:43 +0800 Subject: [PATCH 17/29] Update compile.yml --- .github/workflows/compile.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 306adc9..12d8845 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -22,11 +22,17 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4.0.3 with: - node-version: 18 + node-version: 20 - name: install Rust stable uses: dtolnay/rust-toolchain@stable + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-20.04' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: @@ -39,9 +45,3 @@ jobs: - name: compile run: pnpm run tauri-build - - uses: tauri-apps/tauri-action@v0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - releaseId: ${{ needs.create-release.outputs.release_id }} - From b645feea5efd3db6ce59753e39fe3ba98f1c24c1 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:18:52 +0800 Subject: [PATCH 18/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 12d8845..1c4b33c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -28,7 +28,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf From fcbdcb1baaa069b31e084eb90cb61a73699701bd Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:24:07 +0800 Subject: [PATCH 19/29] Update compile.yml --- .github/workflows/compile.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1c4b33c..dcb2f93 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -27,8 +27,7 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable - - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-latest' + - name: install dependencies run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf From 2c6955123d3d2527fd330d605ee7b1d2a989719c Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:32:59 +0800 Subject: [PATCH 20/29] Update compile.yml --- .github/workflows/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index dcb2f93..f1c3fd1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -27,7 +27,7 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable - - name: install dependencies + - name: install dependencies of ubuntu run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf @@ -38,8 +38,8 @@ jobs: version: 7 run_install: false - - name: Install dependencies - run: pnpm install --no-frozen-lockfile + - name: Install dependencies of pnpm + run: pnpm install --frozen-lockfile - name: compile run: pnpm run tauri-build From 4c02452fd87eee4222ad69b6b64b63b850db3b6e Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:40:06 +0800 Subject: [PATCH 21/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f1c3fd1..d355f30 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -35,7 +35,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: - version: 7 + version: 8.9.0 run_install: false - name: Install dependencies of pnpm From e474cd6c80bf4524bc3c566f174fd7d62810b415 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:45:13 +0800 Subject: [PATCH 22/29] Update compile.yml --- .github/workflows/compile.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d355f30..812531b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -38,6 +38,9 @@ jobs: version: 8.9.0 run_install: false + - name: List files in the current directory + run: ls -al + - name: Install dependencies of pnpm run: pnpm install --frozen-lockfile From 02bf7d9a554e34ce0cb1d128f8e4ca1782da5d0f Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:02:12 +0800 Subject: [PATCH 23/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 812531b..aa74f17 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -35,7 +35,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: - version: 8.9.0 + version: 9.3.0 run_install: false - name: List files in the current directory From f4ca8032aeba66b6d1fd6695a14ca473696df4ab Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:39:01 +0800 Subject: [PATCH 24/29] Update compile.yml --- .github/workflows/compile.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index aa74f17..40b5a12 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -13,7 +13,7 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout @@ -27,11 +27,6 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable - - name: install dependencies of ubuntu - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: From d560d4329bebcaa0516475c62ae8f6e86c7e9501 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:40:29 +0800 Subject: [PATCH 25/29] Update compile.yml --- .github/workflows/compile.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 40b5a12..95f6137 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -33,9 +33,6 @@ jobs: version: 9.3.0 run_install: false - - name: List files in the current directory - run: ls -al - - name: Install dependencies of pnpm run: pnpm install --frozen-lockfile From 7b46e33e1232245ec0b97fcad11f2e34e1eb239e Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 01:09:43 +0800 Subject: [PATCH 26/29] Update compile.yml --- .github/workflows/compile.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 95f6137..e31b590 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -39,3 +39,14 @@ jobs: - name: compile run: pnpm run tauri-build + - name: List output files + run: dir /s /b dist + + - name: Create GitHub Release + id: create_release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: src-tauri/target/release/bundle/nsis/层合板力学性能计算程序_4.0.0_x64-setup.exe + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 88c29127564f28dce966df7680edb565836c8314 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 01:17:06 +0800 Subject: [PATCH 27/29] Update compile.yml --- .github/workflows/compile.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e31b590..d810615 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -38,14 +38,11 @@ jobs: - name: compile run: pnpm run tauri-build - - - name: List output files - run: dir /s /b dist - name: Create GitHub Release id: create_release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') + # if: startsWith(github.ref, 'refs/tags/') with: files: src-tauri/target/release/bundle/nsis/层合板力学性能计算程序_4.0.0_x64-setup.exe env: From 8f985135949fa374dbbe0567b7c1961675bf8c26 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 01:26:30 +0800 Subject: [PATCH 28/29] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d810615..509961d 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -42,7 +42,7 @@ jobs: - name: Create GitHub Release id: create_release uses: softprops/action-gh-release@v2 - # if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') with: files: src-tauri/target/release/bundle/nsis/层合板力学性能计算程序_4.0.0_x64-setup.exe env: From d0996f7a02d4a25e1c9aa2b10cc12e83d735eb31 Mon Sep 17 00:00:00 2001 From: Lu ZHANG <104704068+VON0000@users.noreply.github.com> Date: Wed, 11 Sep 2024 02:07:59 +0800 Subject: [PATCH 29/29] Update compile.yml --- .github/workflows/compile.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 509961d..a1843b9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -38,12 +38,18 @@ jobs: - name: compile run: pnpm run tauri-build - + + - name: List generated files + run: dir src-tauri/target/release/bundle/nsis + + - name: Debug ref + run: echo "github.ref is ${{ github.ref }}" + - name: Create GitHub Release id: create_release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - files: src-tauri/target/release/bundle/nsis/层合板力学性能计算程序_4.0.0_x64-setup.exe + files: src-tauri/target/release/bundle/nsis/*.exe env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}