Skip to content

Commit

Permalink
Rename artifacts and run most of the push-dynamic job
Browse files Browse the repository at this point in the history
  • Loading branch information
Assumeru committed Nov 4, 2024
1 parent 1f3908c commit ab01de6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ jobs:

runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v4

Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ab01de6

Please sign in to comment.