Skip to content

Commit 1f2082f

Browse files
committed
Add sample integrate and deploy workflows
1 parent d87c26a commit 1f2082f

File tree

3 files changed

+34
-47
lines changed

3 files changed

+34
-47
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Deploy
2+
on:
3+
release:
4+
types:
5+
- published
6+
jobs:
7+
build:
8+
name: Build
9+
if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'master' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: '2.2.x'
16+
- run: dotnet build

.github/workflows/integrate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Integrate
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: '2.2.x'
18+
- run: dotnet build

0 commit comments

Comments
 (0)