This commit is contained in:
Ramen2X 2020-12-15 21:58:14 -05:00
commit ea3293a865

51
.github/workflows/ci.yml vendored Normal file
View 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