Make Release #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make Release | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
jobs: | |
make-release: | |
permissions: write-all | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
ssh-key: ${{ secrets.UEPSEUDO_SSH_KEY }} | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Setup DirectX SDK (for xinput1_3.dll) | |
run: | | |
Invoke-WebRequest -URI https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe -OutFile dxwebsetup.exe | |
Start-Process -Wait dxwebsetup.exe /q | |
Get-ChildItem C:\Windows\System32 | |
- name: Debug | |
run: | | |
Get-ChildItem C:\Windows\System32 | |
# - name: Release Commit | |
# id: release_commit | |
# run: python build.py release_commit ${{ github.actor }} | |
# working-directory: ./tools/buildscripts | |
- name: Build | |
run: | | |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
- name: Package | |
run: python tools/buildscripts/build.py package | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
tags: true | |
- name: Release | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.release_commit.outputs.release_tag }} | |
body_path: release/release_notes.md | |
files: | | |
release/UE4SS_v*.zip | |
release/zDEV-UE4SS_v*.zip | |
release/zCustomGameConfigs.zip | |
release/zMapGenBP.zip | |
- name: Get workflow token | |
id: get_workflow_token | |
uses: peter-murray/workflow-application-token-action@v2 | |
with: | |
application_id: ${{ secrets.WORKFLOW_DISPATCHER_APPID }} | |
application_private_key: ${{ secrets.WORKFLOW_DISPATCHER_KEY }} | |
permissions: "actions:write" | |
- name: Trigger website update | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish.yml | |
ref: ci | |
repo: UE4SS-RE/website | |
token: ${{ steps.get_workflow_token.outputs.token }} | |
inputs: '{ "releaseLink": "${{ fromJson(steps.release.outputs.assets)[0].browser_download_url }}" }' |