Skip to content

Commit 1dd15dc

Browse files
committed
Update ci.yml
1 parent 08244df commit 1dd15dc

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push: {}
6+
release:
7+
types: [published]
8+
49

510
env:
611
DOTNET_SDK_VERSION: '6.0.100-preview.5.21302.13'
@@ -103,4 +108,20 @@ jobs:
103108
- name: Check tests success
104109
working-directory: ./gmod/
105110
shell: bash
106-
run: cat test-success.txt
111+
run: cat test-success.txt
112+
113+
deploy:
114+
runs-on: ubuntu-20.04
115+
116+
needs: [linux-test, windows-test]
117+
118+
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'GmodNET' }}
119+
120+
steps:
121+
- name: Checkout
122+
uses: actions/checkout@v2.0.0
123+
124+
- name: Install .NET SDK
125+
uses: actions/setup-dotnet@v1.7.2
126+
with:
127+
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}

0 commit comments

Comments
 (0)