diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f8502c..c293d63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: - name: Set Environment Variables run: | + echo "MOD_VERSION=$(cat ${{ github.workspace }}/manifest.json | jq --raw-output '.Version')" >> $GITHUB_ENV echo "REPO_NAME=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV echo "REFASM_TAG=SDV1.6.8-SMAPI4.0.8" >> $GITHUB_ENV # Setup GamePath @@ -60,10 +61,6 @@ jobs: - name: Build run: dotnet build --no-restore --configuration Release - - name: Fetch version - run: | - echo "MOD_VERSION=$(cat $GITHUB_WORKSPACE/bin/Release/version.txt)" >> $GITHUB_ENV - - name: Unzip mod run: | MOD_ZIP_PATH="${{ github.workspace }}/bin/Release/${{ env.REPO_NAME }} ${{ env.MOD_VERSION }}.zip"