Skip to content

fix: vs prerelease

fix: vs prerelease #3

Workflow file for this run

name: Build and Publish Artifact
on:
- push
env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip
EXILED_REFERENCES: ${{ github.workspace }}/refs
jobs:
build:
runs-on: windows-2019
steps:
- name: Setup MSBuild
uses: microsoft/[email protected]
with:
vs-prerelease: true
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: 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: Publish Artifact
uses: actions/upload-artifact@v4
with:
name: DiscordLab
path: |
${{ github.workspace }}/DiscordLab.AdvancedLogging/bin/Debug/net48/DiscordLab.AdvancedLogging.dll
${{ github.workspace }}/DiscordLab.Bot/bin/Debug/net48/DiscordLab.Bot.dll
${{ github.workspace }}/DiscordLab.BotStatus/bin/Debug/net48/DiscordLab.BotStatus.dll
${{ github.workspace }}/DiscordLab.ConnectionLogs/bin/Debug/net48/DiscordLab.ConnectionLogs.dll
${{ github.workspace }}/DiscordLab.DeathLogs/bin/Debug/net48/DiscordLab.DeathLogs.dll
${{ github.workspace }}/DiscordLab.Moderation/bin/Debug/net48/DiscordLab.Moderation.dll
${{ github.workspace }}/DiscordLab.ModerationLogs/bin/Debug/net48/DiscordLab.ModerationLogs.dll
${{ github.workspace }}/DiscordLab.StatusChannel/bin/Debug/net48/DiscordLab.StatusChannel.dll
${{ github.workspace }}/DiscordLab.XPSystem/bin/Debug/net48/DiscordLab.XPSystem.dll
if-no-files-found: error