Skip to content

Commit 741f4df

Browse files
Update GitHub Actions
1 parent 651f412 commit 741f4df

File tree

2 files changed

+6
-53
lines changed

2 files changed

+6
-53
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
name: Continuous Integration
23
on: pull_request
34

@@ -16,20 +17,10 @@ jobs:
1617
build:
1718
name: Build
1819
if: "!contains(github.event.head_commit.message, 'skip-ci')"
19-
strategy:
20-
matrix:
21-
kind: ['linux', 'windows', 'macOS']
22-
include:
23-
- kind: linux
24-
os: ubuntu-latest
25-
- kind: windows
26-
os: windows-latest
27-
- kind: macOS
28-
os: macos-latest
29-
runs-on: ${{ matrix.os }}
20+
runs-on: ubuntu-latest
3021
steps:
3122
- name: Checkout
32-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
3324
with:
3425
fetch-depth: 0
3526

@@ -38,7 +29,7 @@ jobs:
3829
shell: bash
3930

4031
- name: Setup .NET SDK
41-
uses: actions/setup-dotnet@v1
32+
uses: actions/setup-dotnet@v3
4233

4334
- name: Build
4435
shell: bash

.github/workflows/publish.yaml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,17 @@ env:
1515

1616
jobs:
1717

18-
###################################################
19-
# BUILD
20-
###################################################
21-
22-
build:
23-
name: Build
24-
if: "!contains(github.event.head_commit.message, 'skip-ci')"
25-
strategy:
26-
matrix:
27-
kind: ['linux', 'windows', 'macOS']
28-
include:
29-
- kind: linux
30-
os: ubuntu-latest
31-
- kind: windows
32-
os: windows-latest
33-
- kind: macOS
34-
os: macos-latest
35-
runs-on: ${{ matrix.os }}
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v2
39-
with:
40-
fetch-depth: 0
41-
42-
- name: 'Get Git tags'
43-
run: git fetch --tags
44-
shell: bash
45-
46-
- name: Setup .NET SDK
47-
uses: actions/setup-dotnet@v1
48-
49-
- name: Build
50-
shell: bash
51-
run: |
52-
dotnet tool restore
53-
dotnet cake
54-
5518
###################################################
5619
# PUBLISH
5720
###################################################
5821

5922
publish:
6023
name: Publish
61-
needs: [build]
6224
if: "!contains(github.event.head_commit.message, 'skip-ci')"
6325
runs-on: ubuntu-latest
6426
steps:
6527
- name: Checkout
66-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
6729
with:
6830
fetch-depth: 0
6931

@@ -72,7 +34,7 @@ jobs:
7234
shell: bash
7335

7436
- name: Setup .NET SDK
75-
uses: actions/setup-dotnet@v1
37+
uses: actions/setup-dotnet@v3
7638

7739
- name: Publish
7840
shell: bash

0 commit comments

Comments
 (0)