build: fixes whitespace bug in upload condition, refactors
@@ -68,7 +68,7 @@ on:
type: boolean
env:
- DO_UPLOAD: >
+ DO_UPLOAD: >-
${{
inputs.upload ||
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
@@ -112,7 +112,7 @@ jobs:
>> $GITHUB_ENV
- uses: google-github-actions/setup-gcloud@v0.2.0
- if: ${{ env.DO_UPLOAD == 'true' }}
+ if: env.DO_UPLOAD == 'true'
with:
version: '290.0.1'
service_account_key: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}
@@ -120,7 +120,7 @@ jobs:
export_default_credentials: true
- name: upload binary to bootstrap.urbit.org
- if: ${{ env.DO_UPLOAD == 'true' }}
+ if: env.DO_UPLOAD == 'true'
run: |
version="$(cat ./pkg/urbit/version)"
system="$(nix-instantiate --eval --expr 'builtins.currentSystem')"
@@ -168,12 +168,12 @@ jobs:
http://localhost:12321
- uses: actions/setup-python@v2
- if: ${{ env.DO_UPLOAD == 'true' }}
+ if: env.DO_UPLOAD == 'true'
with:
python-version: 3.7
- uses: google-github-actions/setup-gcloud@v0.6.0
- if: ${{ env.DO_UPLOAD == 'true' }}
+ if: env.DO_UPLOAD == 'true'
env:
# see https://github.com/google-github-actions/setup-gcloud/issues/100
CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
@@ -183,7 +183,7 @@ jobs:
export_default_credentials: true
- name: upload binary to bootstrap.urbit.org
- if: ${{ env.DO_UPLOAD == 'true' }}
+ if: env.DO_UPLOAD == 'true'
env:
CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
shell: bash
