This repository has been archived by the owner on Oct 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Build
committed
Jul 17, 2022
0 parents
commit 2c5b810
Showing
12 changed files
with
689 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ElevatorGrenadeNullifier CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v1.5.0 | ||
|
||
- uses: actions/checkout@v2.3.1 | ||
|
||
- name: Download 7zip | ||
uses: carlosperate/download-file-action@v1.0.3 | ||
with: | ||
file-url: 'https://www.exiled.host/7za.exe' | ||
file-name: '7zip.exe' | ||
|
||
- name: Download references | ||
uses: carlosperate/download-file-action@v1.0.3 | ||
with: | ||
file-url: 'https://www.exiled.host/build_deps/Dev.zip' | ||
file-name: 'References.zip' | ||
|
||
- name: Extract Refs | ||
run: ./7zip.exe e References.zip -oReferences -r -y | ||
|
||
- name: Restore project | ||
run: dotnet restore -p:Configuration=Release | ||
|
||
- name: Build project | ||
shell: pwsh | ||
run: | | ||
if ('${{ GITHUB.REF }}' -Match 'dev$') { | ||
dotnet build -p:DeployToServer=false -p:Configuration=Release -p:BuildNumber=${{ GITHUB.RUN_NUMBER }} | ||
} else { | ||
dotnet build -p:DeployToServer=false -p:Configuration=Release | ||
} | ||
env: | ||
EXILED_REFERENCES: ${{ github.workspace }}/References | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build Results | ||
path: ElevatorGrenadeNullifier/bin/Release |
Oops, something went wrong.