steamos CD deployment (#8)

This commit is contained in:
extrawurst
2025-03-20 17:47:15 +01:00
committed by GitHub
parent 77ca2f4ffb
commit 1721a34249
12 changed files with 93 additions and 46 deletions

View File

@@ -34,10 +34,50 @@ jobs:
- name: Archive
run: |
mv target/x86_64-unknown-linux-gnu/release/hedz_reloaded hedz_reloaded
cp target/x86_64-unknown-linux-gnu/release/hedz_reloaded hedz_reloaded
tar -czf steamos.tar.gz hedz_reloaded
- uses: actions/upload-artifact@v4
with:
name: steamos.tar.gz
path: ./steamos.tar.gz
- name: Copy Binary for SteamOS
run: |
mkdir -p build/steamos/content
cp target/x86_64-unknown-linux-gnu/release/hedz_reloaded build/steamos/content/hedz_reloaded
- name: Install SteamCMD
run: |
sudo apt-get install lib32gcc-s1 -y
mkdir ~/Steam && cd ~/Steam
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
chmod +x ~/Steam/
~/Steam/steamcmd.sh +help +quit
- name: Steam Auth
env:
STEAM_CONFIG: ${{ secrets.STEAM_CONFIG_VDF_BASE64 }}
STEAM_CONFIG_PATH: ~/Steam/config
run: |
mkdir -p $STEAM_CONFIG_PATH
# Decode the base64 data and save it to the config location
echo "$STEAM_CONFIG" | base64 --decode | gunzip > $STEAM_CONFIG_PATH/config.vdf
# Set proper permissions
chmod 644 $STEAM_CONFIG_PATH/config.vdf
ls -lisah $STEAM_CONFIG_PATH/config.vdf
- name: Steam deploy
env:
# needs to be fully qualified path for steamcmd to find it
DEPOT: ${{ github.workspace }}/build/steamos/scripts/hedz.vdf
STEAM_USR: ${{ secrets.STEAM_USR }}
run: |
cd build/steamos
~/Steam/steamcmd.sh +login $STEAM_USR +run_app_build $DEPOT +quit
- name: Discord notification
uses: appleboy/discord-action@v1.2.0
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
message: New HEDZ-Reloaded alpha version on Steam