mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Made builds not on master use Debug
This commit is contained in:
parent
8c14ca8732
commit
a6b7dc4b8f
25
.github/workflows/build.yaml
vendored
25
.github/workflows/build.yaml
vendored
@ -25,16 +25,14 @@ jobs:
|
|||||||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
# Replace / with _ in ref name so that it can be used in a filename
|
# Set to Release if we're in master, otherwise keep us in Debug
|
||||||
- uses: mad9000/actions-find-and-replace-string@2
|
- name: Set Release
|
||||||
id: sanitizeRef
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
run: echo "BUILD_TYPE=Release" >> $GITHUB_ENV
|
||||||
source: ${{ github.ref_name }}
|
|
||||||
find: '/'
|
- name: Set Debug
|
||||||
replace: '_'
|
if: github.ref != 'refs/heads/master'
|
||||||
# Get short-sha so that it can be used in a filename
|
run: echo "BUILD_TYPE=Debug" >> $GITHUB_ENV
|
||||||
- uses: benjlevesque/short-sha@v1.2
|
|
||||||
id: short-sha
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -56,9 +54,8 @@ jobs:
|
|||||||
- uses: actions/setup-dotnet@v1
|
- uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: "5.0.x"
|
dotnet-version: "5.0.x"
|
||||||
- run: dotnet build -c Release -o .\NewHorizons\Bin\Release
|
- run: dotnet build -c ${{ env.BUILD_TYPE }} -o .\NewHorizons\Bin\${{ env.BUILD_TYPE }}
|
||||||
- run: tree
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: NewHorizons-${{ steps.sanitizeRef.outputs.value }}-${{ steps.short-sha.outputs.sha }}
|
name: NewHorizons-${{ env.BUILD_TYPE }}
|
||||||
path: .\NewHorizons\Bin\Release
|
path: .\NewHorizons\Bin\${{ env.BUILD_TYPE }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user