Refactor build workflow to include release branch parameter

This commit is contained in:
mauro-balades
2024-09-30 23:14:11 +02:00
parent 87f76f1cc2
commit 81db0458a9
4 changed files with 8 additions and 8 deletions

View File

@@ -500,7 +500,7 @@ jobs:
run: sleep 240
release-flatpak:
if: ${{ github.event.inputs.create_release == 'true' }}
if: ${{ github.event.inputs.create_release == 'true' && github.event.inputs.update_branch == 'alpha' }}
permissions: write-all
name: Release Flatpak
needs: [prepare-flatpak, build-data]

View File

@@ -91,7 +91,7 @@ jobs:
run: pnpm install
- name: Load surfer CI setup
run: pnpm surfer ci --brand ${{ github.event.inputs.release-branch }} --display-version ${{ inputs.build-version }}
run: pnpm surfer ci --brand ${{ inputs.release-branch }} --display-version ${{ inputs.build-version }}
- name: Download firefox source and dependencies
run: pnpm surfer download

View File

@@ -92,7 +92,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Load surfer CI setup
run: pnpm surfer ci --brand ${{ github.event.inputs.release-branch }} --display-version ${{ inputs.build-version }}
run: pnpm surfer ci --brand ${{ inputs.release-branch }} --display-version ${{ inputs.build-version }}
- name: Download firefox source and dependancies
run: pnpm surfer download

View File

@@ -58,7 +58,7 @@ jobs:
pnpm i
- name: Load surfer CI setup
run: pnpm surfer ci --brand ${{ github.event.inputs.release-branch }} --display-version ${{ inputs.build-version }}
run: pnpm surfer ci --brand ${{ inputs.release-branch }} --display-version ${{ inputs.build-version }}
- name: Download
run: pnpm surfer download
@@ -222,28 +222,28 @@ jobs:
path: engine/obj-x86_64-pc-windows-msvc/
- name: Upload zip file if twilight branch
if: ${{ github.event.inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
uses: actions/upload-artifact@v4
with:
name: zen.win-${{ matrix.generic == true && 'generic' || 'specific' }}.zip
path: ./zen.win-${{ matrix.generic == true && 'generic' || 'specific' }}.zip
- name: Upload installer if twilight branch
if: ${{ github.event.inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
uses: actions/upload-artifact@v4
with:
name: zen.installer${{ matrix.generic == true && '-generic' || '' }}.exe
path: ./zen.installer${{ matrix.generic == true && '-generic' || '' }}.exe
- name: Upload mar if twilight branch
if: ${{ github.event.inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
uses: actions/upload-artifact@v4
with:
name: windows${{ matrix.generic == true && '-generic' || '' }}.mar
path: ./windows${{ matrix.generic == true && '-generic' || '' }}.mar
- name: Upload update manifests if twilight branch
if: ${{ github.event.inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }}
uses: actions/upload-artifact@v4
with:
name: windows_update_manifest_${{ matrix.generic == true && 'generic' || 'specific' }}