Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update client-build-tool.yml #121

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading