From 6aad609a488ba945fbd269ae63f891145d6727a5 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 27 Oct 2022 14:05:06 +0200 Subject: [PATCH] git: Fix more issues with the Steam Deployment --- .github/workflows/build.yml | 39 +++++++++++++------------------------ 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ebf344d1..8bd2765f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,10 @@ jobs: with: submodules: recursive + - name: 📜 Set version variable + run: | + echo "IMHEX_VERSION=`cat VERSION`" >> $GITHUB_ENV + - name: 📜 Setup ccache uses: hendrikmuhs/ccache-action@v1.2 id: cache-ccache @@ -120,20 +124,15 @@ jobs: path: | build/install/* - - name: 🗝️ Generate Steam TOTP - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' - uses: CyberAndrii/steam-totp@v1 - id: steam-totp - with: - shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} - - name: 💨 Publish Steam Nightly if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' uses: WerWolv/steam-deploy@main with: username: ${{ secrets.STEAM_USERNAME }} password: ${{ secrets.STEAM_PASSWORD }} - totp: ${{ steps.steam-totp.outputs.code }} + configVdf: ${{ secrets.STEAM_CONFIG_VDF}} + ssfnFileName: ${{ secrets.STEAM_SSFN_FILE_NAME }} + ssfnFileContents: ${{ secrets.STEAM_SSFN_FILE_CONTENTS }} appId: 2186040 buildDescription: v${{ env.IMHEX_VERSION }} - ${{ github.sha }} rootPath: build @@ -248,20 +247,15 @@ jobs: name: macOS DMG${{matrix.suffix}} path: build/*.dmg - - name: 🗝️ Generate Steam TOTP - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' && !matrix.custom_glfw - uses: CyberAndrii/steam-totp@v1 - id: steam-totp - with: - shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} - - name: 💨 Publish Steam Nightly if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' && !matrix.custom_glfw uses: WerWolv/steam-deploy@main with: username: ${{ secrets.STEAM_USERNAME }} password: ${{ secrets.STEAM_PASSWORD }} - totp: ${{ steps.steam-totp.outputs.code }} + configVdf: ${{ secrets.STEAM_CONFIG_VDF}} + ssfnFileName: ${{ secrets.STEAM_SSFN_FILE_NAME }} + ssfnFileContents: ${{ secrets.STEAM_SSFN_FILE_CONTENTS }} appId: 2186040 buildDescription: v${{ env.IMHEX_VERSION }} - ${{ github.sha }} rootPath: build @@ -370,7 +364,7 @@ jobs: appimage-builder --recipe ../dist/AppImageBuilder.yml cd .. mkdir AppImage - find . -name "*.AppImage" -exec cp '{}' AppImage/ \; + find . -name "*.AppImage" -exec cp '{}' AppImage/imhex.AppImage \; #- name: ⬆️ Upload Flatpak # uses: actions/upload-artifact@v3 @@ -397,20 +391,15 @@ jobs: name: Linux AppImage zsync path: 'build-appimage/*.AppImage.zsync' - - name: 🗝️ Generate Steam TOTP - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' - uses: CyberAndrii/steam-totp@v1 - id: steam-totp - with: - shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} - - name: 💨 Publish Steam Nightly if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' uses: WerWolv/steam-deploy@main with: username: ${{ secrets.STEAM_USERNAME }} password: ${{ secrets.STEAM_PASSWORD }} - totp: ${{ steps.steam-totp.outputs.code }} + configVdf: ${{ secrets.STEAM_CONFIG_VDF}} + ssfnFileName: ${{ secrets.STEAM_SSFN_FILE_NAME }} + ssfnFileContents: ${{ secrets.STEAM_SSFN_FILE_CONTENTS }} appId: 2186040 buildDescription: v${{ env.IMHEX_VERSION }} - ${{ github.sha }} rootPath: AppImage