Skip to content

chore: bump version #326

chore: bump version

chore: bump version #326

Workflow file for this run

name: Build and Publish Artifact
on:
- push
env:
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/Dev.zip
SL_REFERENCES: ${{ github.workspace }}/refs
EXILED_REFERENCES: ${{ github.workspace }}/refs
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dotnet
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 9.0.x
- name: Get References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ env.SL_REFERENCES }} -Force
- name: Rename Assembly-CSharp (because Exiled removes the normal version)
shell: pwsh
run: |
$destination = "${{ env.SL_REFERENCES }}/Assembly-CSharp.dll"
if (-Not (Test-Path $destination)) {
Move-Item -Path "${{ env.SL_REFERENCES }}/Assembly-CSharp-Publicized.dll" -Destination $destination
}
- name: Build
run: dotnet build -c:Release
- name: Publish Artifact
uses: actions/upload-artifact@v4
with:
name: DiscordLab
path: ${{ github.workspace }}/bin
if-no-files-found: error