Skip to content

Add support for InstallScripts (#72) #114

Add support for InstallScripts (#72)

Add support for InstallScripts (#72) #114

Workflow file for this run

name: πŸš€
on:
push: { branches: [main] }
pull_request: {}
workflow_dispatch:
jobs:
checkEnv:
name: Check Env πŸ”Ž
runs-on: ubuntu-latest
outputs:
usernameExists: ${{ steps.checkUsername.outputs.usernameExists }}
steps:
- id: checkUsername
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
if: env.STEAM_USERNAME != ''
run: echo "usernameExists=true" >> $GITHUB_OUTPUT
testDeploy:
name: Deploy to Steam ☁
runs-on: ubuntu-latest
# Only run tests if secrets are available (e.g. not from PRs from forked repos)
needs: [checkEnv]
if: needs.checkEnv.outputs.usernameExists == 'true'
steps:
- uses: actions/checkout@v3
- run: |
mkdir -p build/StandaloneWindows64
touch build/StandaloneWindows64/steam-deploy-test.txt
mkdir -p build/StandaloneLinux64
touch build/StandaloneLinux64/steam-deploy-test.txt
- uses: ./
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
appId: ${{ secrets.TEST_APP_ID }}
buildDescription: v0.0.1
rootPath: build
depot1Path: StandaloneWindows64
depot2Path: StandaloneLinux64
releaseBranch: prerelease