Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: windows exe publish split in pipeline #217

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,10 @@ jobs:
run: npm run test

- name: Build Windows (exe)
if: ${{github.ref != 'refs/heads/main'}}
env:
MODE: production
run: |
npm run build:installer

- name: Build and Publish Windows (exe)
if: ${{github.ref == 'refs/heads/main'}}
env:
GITHUB_TOKEN: ${{secrets.github_token}}
EP_PRE_RELEASE: true
run: |
npm run publish

- name: Sign Windows Build (exe)
uses: sslcom/esigner-codesign@develop
Expand All @@ -178,6 +169,14 @@ jobs:
run: |
Copy-Item -Path "${env:GITHUB_WORKSPACE}\dist\signed\Install Decentraland.exe" -Destination "${env:GITHUB_WORKSPACE}\dist\Install Decentraland.exe" -Force

- name: Publish Windows (exe)
if: ${{github.ref == 'refs/heads/main'}}
env:
GITHUB_TOKEN: ${{secrets.github_token}}
EP_PRE_RELEASE: true
run: |
npm run publishonly

- name: Upload artifacts exe
env:
AWS_DEFAULT_REGION: us-east-1
Expand All @@ -196,7 +195,7 @@ jobs:
run: |
npm run build:appx

- name: Build and Publish Windows (appx) [moved to azure]
- name: Build and Publish Windows (appx)
if: ${{github.ref == 'refs/heads/main'}}
env:
GITHUB_TOKEN: ${{secrets.github_token}}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"build:installer": "npm run build && electron-builder --publish never",
"build:appx": "npm run build && electron-builder --windows appx --publish never",
"publish": "npm run build && electron-builder --publish always",
"publishonly": "electron-builder --publish always",
"publish:appx": "npm run build && electron-builder --windows appx --publish always",
"test": "vitest run"
},
Expand Down
Loading