From fcd47994ddc7fd78243fc0b310dc5edad1777b0c Mon Sep 17 00:00:00 2001 From: zfolmt Date: Sun, 17 Nov 2024 23:45:39 -0600 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fce8201..3137163 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,14 +37,19 @@ jobs: - name: Update thunderstore.toml run: | sed -i "s/versionNumber = \".*\"/versionNumber = \"${{ env.version }}\"/" thunderstore.toml + + - name: Create secrets.json + run: | + echo '{ + "NEW_SHARED_KEY": "${{ secrets.NEW_SHARED_KEY }}" + }' > secrets.json - name: Build (Release) - env: - NEW_SHARED_KEY: ${{ secrets.NEW_SHARED_KEY }} - run: | - echo "Using NEW_SHARED_KEY: $NEW_SHARED_KEY" - dotnet build . --configuration Release -p:Version=${{ env.version }} - + run: dotnet build . --configuration Release -p:Version=${{ env.version }} + + - name: Clean Up + run: rm secrets.json + - name: GH Release uses: softprops/action-gh-release@v1 if: github.event_name == 'workflow_dispatch'