ci: change ci config
This commit is contained in:
1 file changed
+5
-22
@@ -2,12 +2,13 @@ name: Package and Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
types:
|
||||||
- release
|
- closed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
|
||||||
name: Build Application Installer
|
name: Build Application Installer
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -60,22 +61,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tagName: __VERSION__
|
tagName: __VERSION__
|
||||||
releaseName: 'v__VERSION__'
|
releaseName: 'v__VERSION__'
|
||||||
args: ${{ matrix.args }}
|
args: ${{ matrix.args }}
|
||||||
|
|
||||||
# - name: Upload Artefact for Windows
|
|
||||||
# if: matrix.platform == 'windows-latest'
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: Installers
|
|
||||||
# path: |
|
|
||||||
# D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\msi\zuanbot_${{ github.event.release.tag_name }}_x64_en-US.msi
|
|
||||||
# D:\a\zuanbot\zuanbot\src-tauri\target\release\bundle\nsis\zuanbot_${{ github.event.release.tag_name }}_x64-setup.exe
|
|
||||||
#
|
|
||||||
# - name: Upload Artefact
|
|
||||||
# if: matrix.platform == 'macos-latest'
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: Installers
|
|
||||||
# path: |
|
|
||||||
# /Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_aarch64.dmg
|
|
||||||
# /Users/runner/work/zuanbot/zuanbot/src-tauri/target/release/bundle/dmg/zuanbot_${{ github.event.release.tag_name }}_x64.dmg
|
|
||||||
Reference in new issue
Block a user