chore: update pipeline change app logo for build nightly (#4709)
* chore: change app logo for build nightly * chore: add nightly option to rename icons * chore: add rename icons for nightly and beta build * chore: remove rename icons job
This commit is contained in:
parent
c5a5e55afe
commit
1b4a91ba7e
20
.github/workflows/jan-electron-build-beta.yml
vendored
20
.github/workflows/jan-electron-build-beta.yml
vendored
@ -9,24 +9,10 @@ jobs:
|
|||||||
get-update-version:
|
get-update-version:
|
||||||
uses: ./.github/workflows/template-get-update-version.yml
|
uses: ./.github/workflows/template-get-update-version.yml
|
||||||
|
|
||||||
rename-icons-beta:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Replace Icons for Beta Build
|
|
||||||
run: |
|
|
||||||
mv electron/icons/jan-beta-512x512.png electron/icons/512x512.png
|
|
||||||
mv electron/icons/jan-beta.ico electron/icons/icon.ico
|
|
||||||
mv electron/icons/jan-beta.png electron/icons/icon.png
|
|
||||||
mv electron/icons/jan-beta-tray@2x.png electron/icons/icon-tray@2x.png
|
|
||||||
mv electron/icons/jan-beta-tray.png electron/icons/icon-tray.png
|
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
uses: ./.github/workflows/template-build-macos.yml
|
uses: ./.github/workflows/template-build-macos.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [rename-icons-beta, get-update-version]
|
needs: [get-update-version]
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
public_provider: github
|
public_provider: github
|
||||||
@ -37,7 +23,7 @@ jobs:
|
|||||||
build-windows-x64:
|
build-windows-x64:
|
||||||
uses: ./.github/workflows/template-build-windows-x64.yml
|
uses: ./.github/workflows/template-build-windows-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [rename-icons-beta, get-update-version]
|
needs: [get-update-version]
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
public_provider: github
|
public_provider: github
|
||||||
@ -48,7 +34,7 @@ jobs:
|
|||||||
build-linux-x64:
|
build-linux-x64:
|
||||||
uses: ./.github/workflows/template-build-linux-x64.yml
|
uses: ./.github/workflows/template-build-linux-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [rename-icons-beta, get-update-version]
|
needs: [get-update-version]
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
public_provider: github
|
public_provider: github
|
||||||
|
|||||||
26
.github/workflows/jan-electron-build-nightly.yml
vendored
26
.github/workflows/jan-electron-build-nightly.yml
vendored
@ -16,20 +16,6 @@ on:
|
|||||||
types: [submitted]
|
types: [submitted]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rename-icons-nightly:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Replace Icons for Nightly Build
|
|
||||||
run: |
|
|
||||||
mv electron/icons/jan-nightly-512x512.png electron/icons/512x512.png
|
|
||||||
mv electron/icons/jan-nightly.ico electron/icons/icon.ico
|
|
||||||
mv electron/icons/jan-nightly.png electron/icons/icon.png
|
|
||||||
mv electron/icons/jan-nightly-tray@2x.png electron/icons/icon-tray@2x.png
|
|
||||||
mv electron/icons/jan-nightly-tray.png electron/icons/icon-tray.png
|
|
||||||
|
|
||||||
set-public-provider:
|
set-public-provider:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
@ -63,33 +49,34 @@ jobs:
|
|||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
uses: ./.github/workflows/template-build-macos.yml
|
uses: ./.github/workflows/template-build-macos.yml
|
||||||
needs: [rename-icons-nightly, get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
||||||
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
||||||
|
nightly: true
|
||||||
cortex_api_port: "39261"
|
cortex_api_port: "39261"
|
||||||
|
|
||||||
build-windows-x64:
|
build-windows-x64:
|
||||||
uses: ./.github/workflows/template-build-windows-x64.yml
|
uses: ./.github/workflows/template-build-windows-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [rename-icons-nightly, get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
||||||
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
||||||
|
nightly: true
|
||||||
cortex_api_port: "39261"
|
cortex_api_port: "39261"
|
||||||
|
|
||||||
|
|
||||||
build-linux-x64:
|
build-linux-x64:
|
||||||
uses: ./.github/workflows/template-build-linux-x64.yml
|
uses: ./.github/workflows/template-build-linux-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [rename-icons-nightly, get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
||||||
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
||||||
|
nightly: true
|
||||||
cortex_api_port: "39261"
|
cortex_api_port: "39261"
|
||||||
|
|
||||||
sync-temp-to-latest:
|
sync-temp-to-latest:
|
||||||
@ -158,4 +145,3 @@ jobs:
|
|||||||
RUN_ID=${{ github.run_id }}
|
RUN_ID=${{ github.run_id }}
|
||||||
COMMENT="This is the build for this pull request. You can download it from the Artifacts section here: [Build URL](https://github.com/${{ github.repository }}/actions/runs/${RUN_ID})."
|
COMMENT="This is the build for this pull request. You can download it from the Artifacts section here: [Build URL](https://github.com/${{ github.repository }}/actions/runs/${RUN_ID})."
|
||||||
gh pr comment $PR_URL --body "$COMMENT"
|
gh pr comment $PR_URL --body "$COMMENT"
|
||||||
|
|
||||||
24
.github/workflows/template-build-linux-x64.yml
vendored
24
.github/workflows/template-build-linux-x64.yml
vendored
@ -23,6 +23,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
nightly:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
cortex_api_port:
|
cortex_api_port:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -47,6 +51,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
- name: Replace Icons for Beta Build
|
||||||
|
if: inputs.beta == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-beta-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-beta.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-beta.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-beta-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-beta-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
|
- name: Replace Icons for Nightly Build
|
||||||
|
if: inputs.nightly == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-nightly-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-nightly.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-nightly.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-nightly-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-nightly-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
- name: Installing node
|
- name: Installing node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
24
.github/workflows/template-build-macos.yml
vendored
24
.github/workflows/template-build-macos.yml
vendored
@ -23,6 +23,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
nightly:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
cortex_api_port:
|
cortex_api_port:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -56,6 +60,26 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
- name: Replace Icons for Beta Build
|
||||||
|
if: inputs.beta == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-beta-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-beta.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-beta.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-beta-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-beta-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
|
- name: Replace Icons for Nightly Build
|
||||||
|
if: inputs.nightly == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-nightly-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-nightly.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-nightly.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-nightly-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-nightly-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
- name: Installing node
|
- name: Installing node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
|||||||
24
.github/workflows/template-build-windows-x64.yml
vendored
24
.github/workflows/template-build-windows-x64.yml
vendored
@ -23,6 +23,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
nightly:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
cortex_api_port:
|
cortex_api_port:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -56,6 +60,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
- name: Replace Icons for Beta Build
|
||||||
|
if: inputs.beta == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-beta-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-beta.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-beta.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-beta-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-beta-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
|
- name: Replace Icons for Nightly Build
|
||||||
|
if: inputs.nightly == true
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mv electron/icons/jan-nightly-512x512.png electron/icons/512x512.png
|
||||||
|
mv electron/icons/jan-nightly.ico electron/icons/icon.ico
|
||||||
|
mv electron/icons/jan-nightly.png electron/icons/icon.png
|
||||||
|
mv electron/icons/jan-nightly-tray@2x.png electron/icons/icon-tray@2x.png
|
||||||
|
mv electron/icons/jan-nightly-tray.png electron/icons/icon-tray.png
|
||||||
|
|
||||||
- name: Installing node
|
- name: Installing node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user