mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-11-23 15:48:03 -05:00
Merge branch 'master' of https://github.com/itsmattkc/LEGOIslandRebuilder
This commit is contained in:
commit
ea3293a865
1 changed files with 51 additions and 0 deletions
51
.github/workflows/ci.yml
vendored
Normal file
51
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Install the .NET Core workload
|
||||||
|
- name: Install .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 3.1.101
|
||||||
|
|
||||||
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||||
|
- name: Setup MSBuild.exe
|
||||||
|
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: msbuild Rebuilder.sln /p:Configuration=Release
|
||||||
|
|
||||||
|
- name: Upload a Build Artifact
|
||||||
|
uses: actions/upload-artifact@v2.2.1
|
||||||
|
with:
|
||||||
|
path:
|
||||||
|
Rebuilder/obj/Release/Rebuilder.exe
|
||||||
|
|
||||||
|
- name: Upload to Releases
|
||||||
|
shell: bash
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.UPLOAD_KEY }}
|
||||||
|
TRAVIS_REPO_SLUG: itsmattkc/LEGOIslandRebuilder
|
||||||
|
run: |
|
||||||
|
curl -fLOSs --retry 2 --retry-delay 60 https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||||
|
./upload.sh Rebuilder/obj/Release/Rebuilder.exe
|
Loading…
Reference in a new issue