From 9126cbad7788193b29e7b6df4e417ac5a97c665d Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Mon, 4 May 2020 01:07:14 -0400 Subject: [PATCH] Enable export suffixes --- .github/workflows/build_stage.yml | 10 ++++++++-- .github/workflows/release.yml | 11 ++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_stage.yml b/.github/workflows/build_stage.yml index 4ec41f4..dd755e1 100644 --- a/.github/workflows/build_stage.yml +++ b/.github/workflows/build_stage.yml @@ -20,15 +20,21 @@ jobs: run: | mkdir -p client/templates wget http://godot-enet.cloudsumu.com.s3-website-us-east-1.amazonaws.com/export-templates/debug/$PLATFORM -O client/templates/$PLATFORM + - name: Configure + env: + PLATFORM: ${{ matrix.platform }} + run: | + if [ "$PLATFORM" = "win32" ] || [ "$PLATFORM" = "win64" ] ; then + echo "::set-env name=EXPORT_SUFFIX::.exe" + fi - name: Build id: build uses: josephbmanley/build-godot-action@v1.4.0 with: - name: defend-together + name: defend-together${{ env.EXPORT_SUFFIX }} preset: ${{ matrix.platform }} projectDir: client debugMode: 'true' - package: 'true' - name: Upload Artifact uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9c8a9b..a0d3b8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,15 +20,20 @@ jobs: run: | mkdir -p client/templates wget http://godot-enet.cloudsumu.com.s3-website-us-east-1.amazonaws.com/export-templates/release/$PLATFORM -O client/templates/$PLATFORM + - name: Configure + env: + PLATFORM: ${{ matrix.platform }} + run: | + if [ "$PLATFORM" = "win32" ] || [ "$PLATFORM" = "win64" ] ; then + echo "::set-env name=EXPORT_SUFFIX::.exe" + fi - name: Build id: build uses: josephbmanley/build-godot-action@v1.4.0 with: - name: defend-together + name: defend-together${{ env.EXPORT_SUFFIX }} preset: ${{ matrix.platform }} projectDir: client - debugMode: 'true' - package: 'true' - id: get_tag name: Get Tag env: