Skip to content

Commit

Permalink
Create master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-ZeroTwo authored Nov 17, 2023
1 parent 8cc9b19 commit 51edcfb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/master.yml
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

0 comments on commit 51edcfb

Please sign in to comment.