mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
Merge pull request #367 from PhantomGamers/gh-actions-changes
build.yaml: also build on pull request
This commit is contained in:
commit
471d84aaa3
16
.github/workflows/build.yaml
vendored
16
.github/workflows/build.yaml
vendored
@ -3,13 +3,25 @@ name: Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Replace / with _ in ref name so that it can be used in a filename
|
||||||
|
- uses: mad9000/actions-find-and-replace-string@2
|
||||||
|
id: sanitizeRef
|
||||||
|
with:
|
||||||
|
source: ${{ github.ref_name }}
|
||||||
|
find: '/'
|
||||||
|
replace: '_'
|
||||||
|
# Get short-sha so that it can be used in a filename
|
||||||
|
- uses: benjlevesque/short-sha@v1.2
|
||||||
|
id: short-sha
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-dotnet@v1
|
- uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
@ -17,5 +29,5 @@ jobs:
|
|||||||
- run: dotnet build -c Release
|
- run: dotnet build -c Release
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: QSB-prerelease
|
name: QSB-${{ steps.sanitizeRef.outputs.value }}-${{ steps.short-sha.outputs.sha }}
|
||||||
path: .\QSB\Bin\Release
|
path: .\QSB\Bin\Release
|
Loading…
Reference in New Issue
Block a user