diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1542244..51caf93 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -206,8 +206,6 @@ jobs: runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - uses: actions/checkout@v4 @@ -216,15 +214,16 @@ jobs: - name: Rename artifacts run: | - mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2019-${{ github.sha }}.7z windows-2019-${{ github.ref_name }}.7z - mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2022-${{ github.sha }}.7z windows-2022-${{ github.ref_name }}.7z - mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2019-pdb-${{ github.sha }}.7z windows-2019-pdb-${{ github.ref_name }}.7z - mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2022-pdb-${{ github.sha }}.7z windows-2022-pdb-${{ github.ref_name }}.7z + mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2019-${{ github.sha }}.7z vcpkg-x64-2019-${{ github.ref_name }}.7z + mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2022-${{ github.sha }}.7z vcpkg-x64-2022-${{ github.ref_name }}.7z + mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2019-pdb-${{ github.sha }}.7z vcpkg-x64-2019-pdb-${{ github.ref_name }}.7z + mv vcpkg-x64-*-${{ github.sha }}/vcpkg-x64-windows-2022-pdb-${{ github.sha }}.7z vcpkg-x64-2022-pdb-${{ github.ref_name }}.7z - name: Release + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: - files: windows-*-${{ github.ref_name }}.7z + files: vcpkg-x64-*-${{ github.ref_name }}.7z - name: Setup ssh-agent env: @@ -282,7 +281,7 @@ jobs: - name: Generate files containing a download url and hash run: | - for file in windows-*-${{ github.ref_name }}.7z; do + for file in vcpkg-x64-*-${{ github.ref_name }}.7z; do echo "${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}/$file" > "openmw-deps/windows/$file.txt" shasum -a 512 "$file" >> "openmw-deps/windows/$file.txt" done @@ -303,7 +302,7 @@ jobs: working-directory: ${{ github.workspace }}/openmw-deps run: | git checkout -b vcpkg-x64-${{ github.sha }} - git add windows/windows-*-${{ github.ref_name }}.7z.txt + git add windows/vcpkg-x64-*-${{ github.ref_name }}.7z.txt git commit -F commit_message.txt - name: Verify commit to openmw-deps repository