diff --git a/.github/workflows/upload_COS.yml b/.github/workflows/upload_COS.yml index 8b15744..a7886bd 100644 --- a/.github/workflows/upload_COS.yml +++ b/.github/workflows/upload_COS.yml @@ -14,10 +14,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - - name: Hash THUAI6 - run: | - python ./dependency/py/nowHash.py - name: Setup dotnet Core uses: actions/setup-dotnet@v3 @@ -45,7 +41,7 @@ jobs: with: path: | ./THUAI6 - key: ${{ hashFiles('./hash.txt') }} + key: ${{ github.event.head_commit.message }} build_upload: needs: client_build @@ -53,10 +49,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Hash THUAI6 - run: | - python ./dependency/py/nowHash.py - - name: Setup dotnet Core uses: actions/setup-dotnet@v3 with: @@ -76,7 +68,7 @@ jobs: with: path: | ./THUAI6 - key: ${{ hashFiles('./hash.txt') }} + key: ${{ github.event.head_commit.message }} - name: Publish run: | @@ -142,6 +134,9 @@ jobs: bucket: ${{ secrets.COS_BUCKET }} region: ${{ secrets.COS_REGION }} + - name: Unix to dos + run: bash ./dependency/shell/Unix2dos.sh + - name: Hash Files run: | python ./dependency/py/HashFiles.py -t ./THUAI6/