forked from BuildBoy12-SL/EndConditions
-
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
1 parent
8cc9b19
commit 51edcfb
Showing
1 changed file
with
41 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,41 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
env: | ||
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip | ||
EXILED_References: ${{ github.workspace }}/References | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
|
||
- 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 }} | ||
- name: Restore Packages | ||
run: nuget restore | ||
|
||
- name: setup-msbuild | ||
uses: microsoft/[email protected] | ||
|
||
- name: Build QQBOT for release | ||
run: msbuild EndConditions\EndConditions.csproj -t:build -verbosity:diag -property:Configuration=Release | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build Result | ||
path: EndConditions/bin/Release |