Skip to content

Create master.yml

Create master.yml #2

Workflow file for this run

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 EndConditions 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