Skip to content

Commit

Permalink
👷 map build condition
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Apr 2, 2024
1 parent df97af5 commit 9d8040b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,11 @@ jobs:
run: |
if [ '${{ matrix.config.target }}' == 'android' ] && [ ${{ github.event.inputs.PACKAGE_ANDROID }} == 'true' ]; then
echo "::set-output name=need_build::true"
elif [ ${{ matrix.config.target }} == 'ios' ] && [ ${{ env.PACKAGE_IOS }} == 'true' ]; then
elif [ ${{ matrix.config.target }} == 'ios' ] && [ ${{ github.event.inputs.PACKAGE_IOS }} == 'true' ]; then
echo "::set-output name=need_build::true"
else
echo "::set-output name=need_build::false"
fi
- if: steps.need_build.outputs.need_build == 'true'
name: Set-Version (All)
run: |
cd ci
cp version.code.txt ../lib/assets/version.txt
- if: steps.need_build.outputs.need_build == 'true'
name: Setup flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -74,6 +69,11 @@ jobs:
repository: 'niuhuan/pikapika-go-core'
token: ${{ secrets.GH_TOKEN }}
path: 'go'
- if: steps.need_build.outputs.need_build == 'true'
name: Set-Version (All)
run: |
cd ci
cp version.code.txt ../lib/assets/version.txt
- if: steps.need_build.outputs.need_build == 'true'
name: Install go mobile (mobile)
run: |
Expand Down

0 comments on commit 9d8040b

Please sign in to comment.