High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(ci): Run release version bump before mobile build (#1542)
bo0tzze4b3479779c6
diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.ymlindex 071c89e6da..b46324cc6f 100644--- a/.github/workflows/build-mobile.yml+++ b/.github/workflows/build-mobile.yml@@ -3,6 +3,10 @@ name: Build Mobileon:workflow_dispatch:workflow_call:+ inputs:+ ref:+ required: false+ type: stringpull_request:push:branches: [main]@@ -13,7 +17,17 @@ jobs:runs-on: macos-12steps:+ - name: Determine ref+ id: get-ref+ run: |+ input_ref="${{ inputs.ref }}"+ github_ref="${{ github.sha }}"+ ref="${input_ref:-$github_ref}"+ echo "ref=$ref" >> $GITHUB_OUTPUT+- uses: actions/checkout@v3+ with:+ ref: ${{ steps.get-ref.outputs.ref }}- uses: actions/setup-java@v3with:diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.ymlindex 5a7f0aa23b..72f45108ff 100644--- a/.github/workflows/prepare-release.yml+++ b/.github/workflows/prepare-release.yml@@ -18,14 +18,12 @@ on:type: booleanjobs:- build_mobile:- uses: ./.github/workflows/build-mobile.yml- secrets: inherit-- tag_release:+ bump_version:runs-on: ubuntu-latest- needs: build_mobile-++ outputs:+ ref: ${{ steps.push-tag.outputs.commit_long_sha }}+steps:- name: Checkoutuses: actions/checkout@v3@@ -36,6 +34,7 @@ jobs:run: misc/release/pump-version.sh -s "${{ inputs.serverBump }}" -m "${{ inputs.mobileBump }}"- name: Commit and tag+ id: push-taguses: EndBug/add-and-commit@v9with:author_name: Immich Release Bot@@ -43,7 +42,19 @@ jobs:message: "Version ${{ env.IMMICH_VERSION }}"tag: ${{ env.IMMICH_VERSION }}push: true++ build_mobile:+ uses: ./.github/workflows/build-mobile.yml+ needs: bump_version+ secrets: inherit+ with:+ ref: ${{ needs.bump_version.outputs.ref }}++ prepare_release:+ runs-on: ubuntu-latest+ needs: build_mobile+ steps:- name: Download APKuses: actions/download-artifact@v3with: