Skip to content

Commit

Permalink
Add GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Jun 12, 2022
1 parent 23ced44 commit d37303b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: Build OpenLauncher
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --no-restore
- name: Publish
working-directory: src/openlauncher
run: dotnet publish -c Release -r win-x64
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: "OpenLauncher"
path: src/openlauncher/bin/Release/net6.0-windows/win-x64/publish/openlauncher.exe
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
fail_on_unmatched_files: true
files: src/openlauncher/bin/Release/net6.0-windows/win-x64/publish/openlauncher.exe

0 comments on commit d37303b

Please sign in to comment.