Skip to content

Commit

Permalink
Merge pull request #5 from BuildBoy12/master
Browse files Browse the repository at this point in the history
Amazing work, bud <3
  • Loading branch information
SebasCapo authored May 30, 2021
2 parents cd365dd + 1ab805b commit 4020202
Show file tree
Hide file tree
Showing 26 changed files with 1,181 additions and 535 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Lights CI
on: [push, pull_request]

jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET Core SDK
uses: actions/[email protected]

- uses: actions/[email protected]

- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'

- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/build_deps/References.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: Lights/bin/Release
Loading

0 comments on commit 4020202

Please sign in to comment.