Skip to content

Commit 8fecfed

Browse files
clean up, prepare for merge
1 parent b7a6e47 commit 8fecfed

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
# pull_request:
7+
pull_request:
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/release.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Release
22
on:
3-
pull_request:
43
workflow_dispatch:
54
inputs:
65
version:
@@ -19,7 +18,7 @@ jobs:
1918
steps:
2019
- name: Set environment variables
2120
run: |
22-
echo "VERSION=${{ inputs.version || '99.0.0' }}" >> $GITHUB_ENV
21+
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
2322
2423
- uses: actions/checkout@v4
2524

@@ -49,15 +48,15 @@ jobs:
4948
uses: ./.github/workflows/build-android.yml
5049
secrets: inherit
5150
with:
52-
ref: release/${{ inputs.version || '99.0.0' }}
51+
ref: release/${{ inputs.version }}
5352

54-
# build-ios:
55-
# name: 'Build iOS'
56-
# needs: [bump-version]
57-
# uses: ./.github/workflows/build-ios.yml
58-
# secrets: inherit
59-
# with:
60-
# ref: release/${{ inputs.version || '99.0.0' }}
53+
build-ios:
54+
name: 'Build iOS'
55+
needs: [bump-version]
56+
uses: ./.github/workflows/build-ios.yml
57+
secrets: inherit
58+
with:
59+
ref: release/${{ inputs.version }}
6160

6261
publish-release:
6362
name: 'Publish Release'
@@ -66,16 +65,16 @@ jobs:
6665
steps:
6766
- name: Set environment variables
6867
run: |
69-
echo "VERSION=${{ inputs.version || '99.0.0' }}" >> $GITHUB_ENV
68+
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
7069
7170
- uses: actions/checkout@v4
7271
with:
7372
ref: master
7473

75-
# - name: Download iOS App
76-
# uses: actions/download-artifact@v4
77-
# with:
78-
# name: empower-plant-react-native-ios
74+
- name: Download iOS App
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: empower-plant-react-native-ios
7978

8079
- name: Download Android APK
8180
uses: actions/download-artifact@v4
@@ -96,8 +95,8 @@ jobs:
9695
--notes "Release ${{ env.VERSION }}" \
9796
|| error_exit "Failed to create GitHub release."
9897
99-
# - name: Merge Release
100-
# run: |
101-
# git merge release/${{ env.VERSION }} \
102-
# && git push origin master \
103-
# || gh pr create --title "Merge Release ${{ env.VERSION }}" --body "Merge of the release ${{ env.VERSION }} into master failed. Please it merge manually."
98+
- name: Merge Release
99+
run: |
100+
git merge release/${{ env.VERSION }} \
101+
&& git push origin master \
102+
|| gh pr create --title "Merge Release ${{ env.VERSION }}" --body "Merge of the release ${{ env.VERSION }} into master failed. Please it merge manually."

0 commit comments

Comments
 (0)