From 65265b1cb102183b1e849c11a7dbf3fe405f6e85 Mon Sep 17 00:00:00 2001 From: Federico Cucinella <10742159+QcFe@users.noreply.github.com> Date: Fri, 7 Feb 2025 11:51:08 +0100 Subject: [PATCH] fix(ci): release action + bump version (#584) * ci: fix release * build: bump version --- .github/workflows/build.yaml | 15 +++++++++++---- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7c271c83..f9d3fb8b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,6 +33,11 @@ on: type: string description: Build piece (last 2 digits of build_no) required: true + create_release: + type: boolean + description: Create release + required: true + default: false jobs: configure: @@ -75,7 +80,7 @@ jobs: PUSH_TESTFLIGHT=true PUSH_PLAYSTORE="${{ vars.PLAYSTORE_RELEASE_TRACK }}" VERSION="${{ steps.tag_version.outputs.version }}" - BUILD_PIECE=99 + BUILD_PIECE=90 elif [[ "${{ github.event.inputs.version }}" != "" ]]; then # On repo manual dispatch PUSH_TESTFLIGHT="${{ github.event.inputs.push_to_testflight }}" @@ -301,16 +306,18 @@ jobs: permissions: contents: write if: | - github.event_name == 'push' && github.event.repository.full_name == github.repository && - github.ref_type == 'tag' + ( + (github.event_name == 'push' && github.ref_type == 'tag') || + github.event.inputs.create_release == 'true' + ) needs: [build-android, build-ios] runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Gather artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: android-release path: ./android-release diff --git a/package-lock.json b/package-lock.json index b088f2be..137f4e76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@polito/students-app", - "version": "1.6.8", + "version": "1.6.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polito/students-app", - "version": "1.6.8", + "version": "1.6.9", "hasInstallScript": true, "dependencies": { "@formatjs/intl-datetimeformat": "^6.16.5", diff --git a/package.json b/package.json index b416c3f3..c3d1ef3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polito/students-app", - "version": "1.6.8", + "version": "1.6.9", "private": true, "scripts": { "android": "react-native run-android --active-arch-only --appIdSuffix=dev",