quantum-space-buddies/.github/workflows/build.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2021-11-27 04:16:21 +00:00
name: Build
2021-11-27 03:51:01 +00:00
on:
push:
branches: [dev]
pull_request:
2021-11-27 03:51:01 +00:00
workflow_dispatch:
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"]'
2021-11-27 03:51:01 +00:00
build:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2021-11-27 03:51:01 +00:00
runs-on: windows-latest
steps:
2021-11-27 10:46:39 +00:00
# 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
2021-11-27 03:51:01 +00:00
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
2022-02-23 03:31:13 +00:00
- run: dotnet build -c Debug
2021-11-27 03:51:01 +00:00
- uses: actions/upload-artifact@v2
with:
2021-11-27 10:46:39 +00:00
name: QSB-${{ steps.sanitizeRef.outputs.value }}-${{ steps.short-sha.outputs.sha }}
2022-02-23 03:31:13 +00:00
path: .\QSB\Bin\Debug