feat: scp ignore cuffed kills #13
Workflow file for this run
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: Build and Publish Artifact | |
on: | |
- push | |
env: | |
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip | |
XP_SYSTEM_URL: https://api.github.com/repos/RowpannSCP/XP/releases | |
EXILED_REFERENCES: ${{ github.workspace }}/refs | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
with: | |
vs-prerelease: false | |
msbuild-architecture: x64 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Exiled References | |
shell: pwsh | |
run: | | |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip | |
Expand-Archive -Path References.zip -DestinationPath ${{ env.EXILED_REFERENCES }} -Force | |
- name: Get XP System | |
shell: pwsh | |
run: | | |
$response = Invoke-RestMethod -Uri ${{ env.XP_SYSTEM_URL }} | |
$asset = $response.assets | Where-Object { $_.name -eq 'XPSystem-EXILED.dll' } | Select-Object -First 1 | |
$url = $asset.browser_download_url | |
Invoke-WebRequest -Uri $url -OutFile ${{ env.EXILED_REFERENCES }}/XPSystem.dll | |
- name: Restore packages | |
run: nuget restore ${{ github.workspace }}/DiscordLab.sln | |
- name: Build | |
run: msbuild.exe ${{ github.workspace }}/DiscordLab.sln /p:Configuration=Debug /p:Platform="Any CPU" | |
- name: Move DLLs to single directory | |
shell: pwsh | |
run: | | |
$outputDir = "${{ github.workspace }}/output" | |
if (-Not (Test-Path -Path $outputDir)) { | |
New-Item -ItemType Directory -Path $outputDir | |
} | |
Get-ChildItem -Path ${{ github.workspace }} -Directory | ForEach-Object { | |
$folderName = $_.Name | |
$dllPath = Join-Path -Path $_.FullName -ChildPath "bin/Debug/net48/$folderName.dll" | |
if (Test-Path -Path $dllPath) { | |
Copy-Item -Path $dllPath -Destination $outputDir | |
} | |
} | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: DiscordLab | |
path: ${{ github.workspace }}/output | |
if-no-files-found: error |