更新 build.yml

This commit is contained in:
allMagic
2024-06-12 22:09:36 +08:00
committed by GitHub
parent 2996df399b
commit af2787cdb8
+4 -4
View File
@@ -26,11 +26,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set Hash - name: Set Describe
shell: bash shell: bash
run: | run: |
Hash=`git rev-parse --short HEAD` Describe=`git describe`
echo "Hash=$Hash" >> $GITHUB_ENV echo "Describe=$Describe" >> $GITHUB_ENV
- name: Setup MSBuild.exe - name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2 uses: microsoft/setup-msbuild@v2
@@ -43,5 +43,5 @@ jobs:
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.configuration }} ${{ env.Hash }} name: ${{ matrix.configuration }} ${{ env.Describe }}
path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe