Skip to content

Commit

Permalink
steam build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gleblebedev committed Jul 27, 2024
1 parent ece1dc8 commit 3c0dbaa
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,28 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Check for Secret PLAY_KEYSTORE
id: secret-check
id: play-keystore-check
run: |
if [ "${{ secrets.PLAY_KEYSTORE }}" != '' ]; then
echo "HAS_PLAY_KEYSTORE=true" >> $GITHUB_ENV
echo "HAS_PLAY_KEYSTORE=true" >> "$GITHUB_OUTPUT"
else
echo "HAS_PLAY_KEYSTORE=false" >> $GITHUB_ENV
echo "HAS_PLAY_KEYSTORE=false" >> "$GITHUB_OUTPUT"
fi
- name: Output STEAM_USERNAME to env
- name: Check for STEAM_USERNAME
id: steam-check
run: |
echo "STEAM_USERNAME=${{ secrets.STEAM_USERNAME }}" >> $GITHUB_ENV
if [ "${{ secrets.STEAM_USERNAME }}" != '' ]; then
echo "HAS_STEAM_USERNAME=true" >> "$GITHUB_OUTPUT"
else
echo "HAS_STEAM_USERNAME=false" >> "$GITHUB_OUTPUT"
fi
outputs:
BUILD_VERSION: ${{ env.BUILD_VERSION }}
ANDROID_VERSION: ${{ env.ANDROID_VERSION }}
HAS_PLAY_KEYSTORE: ${{ env.HAS_PLAY_KEYSTORE }}
STEAM_USERNAME: ${{ env.STEAM_USERNAME }}
HAS_PLAY_KEYSTORE: ${{ steps.play-keystore-check.outputs.HAS_PLAY_KEYSTORE }}
HAS_STEAM_USERNAME: ${{ steps.steam-check.outputs.HAS_STEAM_USERNAME }}

# ---------------------------------------------------------------------------------------
tests:
Expand Down Expand Up @@ -309,9 +314,8 @@ jobs:
publish_to_steam:
needs: [set_version, build_desktop]
runs-on: ubuntu-latest
if: needs.set_version.outputs.STEAM_USERNAME != ''
if: needs.set_version.outputs.HAS_STEAM_USERNAME == 'true'
steps:

- name: Download Windows Build
uses: robinraju/release-downloader@v1
with:
Expand Down

0 comments on commit 3c0dbaa

Please sign in to comment.