Skip to content

Island data (#158) #316

Island data (#158)

Island data (#158) #316

Workflow file for this run

name: Build SaintCoinach
on: [push, pull_request]
concurrency: build-${{ github.ref }}
jobs:
build:
name: Build on Windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Define Version
id: define-version
run: |
$env:COMMIT = $env:GITHUB_SHA.Substring(0, 7)
echo "::set-output name=commit::$env:COMMIT"
- uses: nuget/setup-nuget@v1
with:
nuget-version: latest
- name: Restore Nuget Packages
run: nuget restore SaintCoinach.sln
- name: Build DotNet4
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\SaintCoinach.sln /t:Build /p:Configuration=Release
- name: Create Release ZIPs
if: ${{ github.ref == 'refs/heads/master' }}
run: |
mkdir release-out
Compress-Archive -Path .\Godbert\bin\Release\* -DestinationPath .\release-out\Godbert.zip -Force
Compress-Archive -Path .\SaintCoinach.Cmd\bin\Release\* -DestinationPath .\release-out\SaintCoinach.Cmd.zip -Force
- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: release-out/**
name: Release for ${{ steps.define-version.outputs.commit }}
body_path: .github\RELEASE.md
prerelease: false
tag_name: ${{ steps.define-version.outputs.commit }}