Skip to content

Commit

Permalink
Update client-build-tool.yml (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
RevoluPowered authored Apr 26, 2024
1 parent ffc748e commit e74895f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/client-build-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,14 @@ on:
version:
value: ${{ jobs.client-build-tool.outputs.version }}
secrets:
gcp-secret:
required: true
cicd-token-github:
required: true
ITCH_IO_CICD:
# only required when you deploy
GCP_DEPLOYMENT_SECRET:
required: false

# declare these so that they can be populated by the app
env:
app_platform:
app_ver:
name: ${{ inputs.environment }}
url: ${{ inputs.url }}


Expand All @@ -134,18 +130,22 @@ defaults:
jobs:
client-build-tool:
name: Build
environment: ${{ inputs.environment }}
runs-on: ${{ inputs.os }}
timeout-minutes: 65
outputs:
url: ${{ steps.output-url.outputs.url }}
file-name: ${{ steps.output-file-name.outputs.file-name }}
version: ${{ steps.output-version.outputs.version }}
steps:
- name: Cleanup working directory (git version differences break the clean command otherwise)
run: |
shopt -s dotglob # includes all hidden files
rm -rf ./*
- uses: actions/checkout@v4
with:
# we'll be cloning the mirror-godot-app folder directly into the builder root so that we don't need to modify paths
sparse-checkout: mirror-godot-app
sparse-checkout-cone-mode: false
path: app-clone/

- name: Installing coreutils (for gtimeout)
if: ${{ inputs.should-install-timeout-macos }}
Expand All @@ -155,7 +155,7 @@ jobs:
run: |
ls -lah
shopt -s dotglob # includes all hidden files
mv mirror-godot-app/* .
mv ./app-clone/mirror-godot-app/* .
ls -lah
- name: Use custom project file (required for custom splash screen)
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
if: ${{ inputs.should-deploy || inputs.should-deploy-as-server }}
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.gcp-secret }}'
credentials_json: '${{ secrets.GCP_DEPLOYMENT_SECRET }}'

- name: Upload build to GCP (for auto-updater)
if: inputs.should-deploy
Expand Down

0 comments on commit e74895f

Please sign in to comment.