Coffee API #190
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: Exiled XMAS CI | |
on: | |
push: | |
branches: | |
- 'xmas-2023' | |
pull_request: | |
branches: | |
- 'xmas-2023' | |
workflow_dispatch: | |
env: | |
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip | |
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References | |
EXILED_DLL_ARCHIVER_URL: https://github.com/Exiled-Team/EXILED-DLL-Archiver/releases/latest/download/EXILED-DLL-Archiver.exe | |
jobs: | |
build: | |
runs-on: windows-latest | |
# Prevent double running for push & pull_request events from the main repo | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'Exiled-Team/Exiled' | |
steps: | |
- name: Setup .NET Core SDK | |
uses: actions/[email protected] | |
- name: Setup Nuget | |
uses: iRebbok/setup-nuget@master | |
- uses: actions/[email protected] | |
- 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.EXILED_REFERENCES_PATH }} | |
- name: Build | |
env: | |
EXILED_REFERENCES: ${{ env.EXILED_REFERENCES_PATH }} | |
shell: pwsh | |
run: | | |
./build.ps1 -BuildNuGet | |
$File = (Get-ChildItem -Path . -Include 'EXILED.*.nupkg' -Recurse).Name | |
Out-File -FilePath ${{ github.env }} -InputObject "PackageFile=$File" -Encoding utf-8 -Append | |
- name: Upload nuget package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ env.PackageFile }} | |
path: ${{ env.PackageFile }} | |
- name: Get references | |
shell: pwsh | |
run: | | |
Invoke-WebRequest -Uri ${{ env.EXILED_DLL_ARCHIVER_URL }} -OutFile ${{ github.workspace }}/EXILED-DLL-Archiver.exe | |
- name: Packaging results as tar.gz | |
shell: pwsh | |
run: ./packaging.ps1 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Build Result | |
path: bin/Release/Exiled.tar.gz |