Skip to content

Commit e74e6a8

Browse files
committed
trigger website update on release
1 parent b24a552 commit e74e6a8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: '3.x'
22+
python-version: "3.x"
2323

2424
- name: Setup MSVC
2525
uses: ilammy/msvc-dev-cmd@v1
@@ -29,8 +29,12 @@ jobs:
2929

3030
- name: Setup DirectX SDK (for xinput1_3.dll)
3131
run: |
32+
Invoke-WebRequest -URI https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe -OutFile dxredist.exe
33+
Start-Process -Wait dxredist.exe -ArgumentList "/q /t:`"$PWD/dxredist`" /c"
34+
Start-Process -Wait dxredist/DXSETUP.exe /silent
3235
Invoke-WebRequest -URI https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe -OutFile dxwebsetup.exe
3336
Start-Process -Wait dxwebsetup.exe /q
37+
Get-ChildItem C:\Windows\System32
3438
3539
- name: Release Commit
3640
id: release_commit
@@ -53,6 +57,7 @@ jobs:
5357
tags: true
5458

5559
- name: Release
60+
id: release
5661
uses: softprops/action-gh-release@v1
5762
with:
5863
tag_name: ${{ steps.release_commit.outputs.release_tag }}
@@ -62,3 +67,20 @@ jobs:
6267
release/zDEV-UE4SS_v*.zip
6368
release/zCustomGameConfigs.zip
6469
release/zMapGenBP.zip
70+
71+
- name: Get workflow token
72+
id: get_workflow_token
73+
uses: peter-murray/workflow-application-token-action@v2
74+
with:
75+
application_id: ${{ secrets.WORKFLOW_DISPATCHER_APPID }}
76+
application_private_key: ${{ secrets.WORKFLOW_DISPATCHER_KEY }}
77+
permissions: "actions:write"
78+
79+
- name: Trigger website update
80+
uses: benc-uk/workflow-dispatch@v1
81+
with:
82+
workflow: publish.yml
83+
ref: main
84+
repo: UE4SS-RE/website
85+
token: ${{ steps.get_workflow_token.outputs.token }}
86+
inputs: '{ "releaseLink": "${{ fromJson(steps.release.outputs.assets)[0].browser_download_url }}" }'

0 commit comments

Comments
 (0)