-
-
Notifications
You must be signed in to change notification settings - Fork 65
45 lines (40 loc) · 1.28 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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