ci: use production environment

This commit is contained in:
Alex Yang
2023-06-29 00:32:39 +08:00
parent acfc030d16
commit 0b74bd9bfe

View File

@@ -40,7 +40,7 @@ env:
jobs: jobs:
before-make: before-make:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: ${{ github.ref_name == 'master' && 'production' || 'development' }} environment: production
outputs: outputs:
RELEASE_VERSION: ${{ steps.get-canary-version.outputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ steps.get-canary-version.outputs.RELEASE_VERSION }}
steps: steps:
@@ -73,7 +73,7 @@ jobs:
path: apps/electron/resources/web-static path: apps/electron/resources/web-static
make-distribution: make-distribution:
environment: ${{ github.ref_name == 'master' && 'production' || 'development' }} environment: production
strategy: strategy:
# all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64 # all combinations: macos-latest x64, macos-latest arm64, windows-latest x64, ubuntu-latest x64
matrix: matrix: