Skip to content

Commit

Permalink
fix(ci): release action + bump version (#584)
Browse files Browse the repository at this point in the history
* ci: fix release

* build: bump version
  • Loading branch information
QcFe authored Feb 7, 2025
1 parent 7c89ab5 commit 65265b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 65265b1

Please sign in to comment.