mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
simplify workflow, do it on any push
This commit is contained in:
parent
1b92b5e23d
commit
c8289fa413
34
.github/workflows/build.yaml
vendored
34
.github/workflows/build.yaml
vendored
@ -1,43 +1,17 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
branches: [dev]
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
||||||
steps:
|
|
||||||
- id: skip_check
|
|
||||||
uses: fkirc/skip-duplicate-actions@master
|
|
||||||
with:
|
|
||||||
paths_ignore: '["**/README.md"]'
|
|
||||||
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
|
|
||||||
build:
|
build:
|
||||||
needs: pre_job
|
|
||||||
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
|
|
||||||
- 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
|
||||||
- run: dotnet build -c Debug
|
- run: dotnet build -c Debug
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: QSB-${{ steps.sanitizeRef.outputs.value }}-${{ steps.short-sha.outputs.sha }}
|
name: QSB
|
||||||
path: .\QSB\Bin\Debug
|
path: .\QSB\Bin\Debug
|
Loading…
Reference in New Issue
Block a user