diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7fb2ec8..cab1f09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,9 +34,15 @@ jobs: dotnet-version: | ${{ matrix.dotnet }} 3.1.x + cache: true + cache-dependency-path: Blocktest/packages.lock.json + + - name: Describe Version + id: desc + uses: proudust/gh-describe@v2 - name: Build - run: dotnet publish ${{ matrix.projectPath }} --configuration Release --runtime ${{ matrix.targetPlatform }} -p:PublishReadyToRun=false -p:TieredCompilation=false -p:PublishSingleFile=true -p:Version=$(git describe --tags) --self-contained false --output ./Build/${{ matrix.targetPlatform }} + run: dotnet publish ${{ matrix.projectPath }} --configuration Release --runtime ${{ matrix.targetPlatform }} -p:PublishReadyToRun=false -p:TieredCompilation=false -p:PublishSingleFile=true -p:Version=${{ desc.outputs.describe }} --self-contained false --output ./Build/${{ matrix.targetPlatform }} - name: Zip build run: |