Skip to content

Commit

Permalink
Re-enable builds on all forks, but only sign if the secrets are prese…
Browse files Browse the repository at this point in the history
…nt (#69)
  • Loading branch information
mikeage authored Mar 28, 2021
1 parent 64b1395 commit b877c7e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ env:
jobs:
build:
name: ${{ matrix.name }}
if: github.repository == 'icosa-gallery/open-brush'
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -153,7 +152,17 @@ jobs:
echo "No value for git describe found!"
fi
- name: Enable the use of a custom keystore
if: ${{ github.event_name == 'push' }}
env:
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
ANDROID_KEYALIAS_NAME: ${{ secrets.ANDROID_KEYALIAS_NAME }}
ANDROID_KEYALIAS_PASS: ${{ secrets.ANDROID_KEYALIAS_PASS }}
if: |
github.event_name == 'push' &&
env.ANDROID_KEYSTORE_BASE64 != null &&
env.ANDROID_KEYSTORE_PASS != null &&
env.ANDROID_KEYALIAS_NAME != null &&
env.ANDROID_KEYALIAS_PASS != null
run: |
sed -e 's/androidUseCustomKeystore.*$/androidUseCustomKeystore: 1/' -i ProjectSettings/ProjectSettings.asset
Expand Down

0 comments on commit b877c7e

Please sign in to comment.