Create master.yml #2
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: 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 |