From 35154887e300dbb8d4da4b98ce132911e81af51d Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Sun, 29 Jun 2025 22:34:36 +0700 Subject: [PATCH] chore: deprecate ci environment (#5592) --- .github/workflows/publish-npm-core.yml | 1 - .github/workflows/template-electron-build-linux-x64.yml | 6 ++---- .github/workflows/template-electron-build-macos.yml | 7 +++---- .github/workflows/template-get-update-version.yml | 1 - .../template-noti-discord-and-update-url-readme.yml | 1 - .github/workflows/template-tauri-build-linux-x64.yml | 1 - .github/workflows/template-tauri-build-macos.yml | 1 - 7 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish-npm-core.yml b/.github/workflows/publish-npm-core.yml index 403deb100..f719ab3d4 100644 --- a/.github/workflows/publish-npm-core.yml +++ b/.github/workflows/publish-npm-core.yml @@ -6,7 +6,6 @@ on: workflow_dispatch: jobs: build-and-publish-plugins: - environment: production runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/template-electron-build-linux-x64.yml b/.github/workflows/template-electron-build-linux-x64.yml index 4dfab5c09..cef11cb0f 100644 --- a/.github/workflows/template-electron-build-linux-x64.yml +++ b/.github/workflows/template-electron-build-linux-x64.yml @@ -43,7 +43,6 @@ jobs: build-linux-x64: if: inputs.public_provider == 'github' || inputs.public_provider == 'none' runs-on: ubuntu-latest - environment: production permissions: contents: write steps: @@ -76,7 +75,6 @@ jobs: cp electron/icons_dev/jan-nightly-tray@2x.png electron/icons/icon-tray@2x.png cp electron/icons_dev/jan-nightly-tray.png electron/icons/icon-tray.png - - name: Installing node uses: actions/setup-node@v1 with: @@ -131,7 +129,7 @@ jobs: env: VERSION_TAG: ${{ inputs.new_version }} - - name: Build and publish app to aws s3 r2 or github artifactory + - name: Build and publish app to aws s3 r2 or github artifactory if: inputs.public_provider != 'github' run: | # check public_provider is true or not @@ -185,4 +183,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: jan-electron-linux-amd64-${{ inputs.new_version }}-AppImage - path: ./electron/dist/*.AppImage \ No newline at end of file + path: ./electron/dist/*.AppImage diff --git a/.github/workflows/template-electron-build-macos.yml b/.github/workflows/template-electron-build-macos.yml index ab9f002cb..8bcdcdf95 100644 --- a/.github/workflows/template-electron-build-macos.yml +++ b/.github/workflows/template-electron-build-macos.yml @@ -53,7 +53,6 @@ jobs: build-macos: if: inputs.public_provider == 'github' || inputs.public_provider == 'none' runs-on: macos-latest - environment: production permissions: contents: write steps: @@ -61,7 +60,7 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} - + - name: Replace Icons for Beta Build if: inputs.beta == true && inputs.nightly != true shell: bash @@ -161,7 +160,7 @@ jobs: p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} - - name: Build and publish app to aws s3 r2 or github artifactory + - name: Build and publish app to aws s3 r2 or github artifactory if: inputs.public_provider != 'github' run: | # check public_provider is true or not @@ -231,4 +230,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: jan-electron-mac-universal-${{ inputs.new_version }} - path: ./electron/dist/*.dmg \ No newline at end of file + path: ./electron/dist/*.dmg diff --git a/.github/workflows/template-get-update-version.yml b/.github/workflows/template-get-update-version.yml index 70f5eace9..2d992fbec 100644 --- a/.github/workflows/template-get-update-version.yml +++ b/.github/workflows/template-get-update-version.yml @@ -9,7 +9,6 @@ on: jobs: get-update-version: runs-on: ubuntu-latest - environment: production outputs: new_version: ${{ steps.version_update.outputs.new_version }} steps: diff --git a/.github/workflows/template-noti-discord-and-update-url-readme.yml b/.github/workflows/template-noti-discord-and-update-url-readme.yml index eaaee7e50..ce288f541 100644 --- a/.github/workflows/template-noti-discord-and-update-url-readme.yml +++ b/.github/workflows/template-noti-discord-and-update-url-readme.yml @@ -26,7 +26,6 @@ on: jobs: noti-discord-and-update-url-readme: - environment: production runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/template-tauri-build-linux-x64.yml b/.github/workflows/template-tauri-build-linux-x64.yml index 18f6c40e9..274aa3662 100644 --- a/.github/workflows/template-tauri-build-linux-x64.yml +++ b/.github/workflows/template-tauri-build-linux-x64.yml @@ -55,7 +55,6 @@ jobs: DEB_SIG: ${{ steps.packageinfo.outputs.DEB_SIG }} APPIMAGE_SIG: ${{ steps.packageinfo.outputs.APPIMAGE_SIG }} APPIMAGE_FILE_NAME: ${{ steps.packageinfo.outputs.APPIMAGE_FILE_NAME }} - environment: production permissions: contents: write steps: diff --git a/.github/workflows/template-tauri-build-macos.yml b/.github/workflows/template-tauri-build-macos.yml index 086e14ad2..038a084fa 100644 --- a/.github/workflows/template-tauri-build-macos.yml +++ b/.github/workflows/template-tauri-build-macos.yml @@ -63,7 +63,6 @@ jobs: outputs: MAC_UNIVERSAL_SIG: ${{ steps.metadata.outputs.MAC_UNIVERSAL_SIG }} TAR_NAME: ${{ steps.metadata.outputs.TAR_NAME }} - environment: production permissions: contents: write steps: