Skip to content

Commit b76232f

Browse files
[Feature] Use github actions (#99)
1 parent fbb6fdc commit b76232f

File tree

13 files changed

+191
-384
lines changed

13 files changed

+191
-384
lines changed

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"gitversion.tool": {
6+
"version": "5.3.7",
7+
"commands": [
8+
"dotnet-gitversion"
9+
]
10+
}
11+
}
12+
}

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
DOTNET_NOLOGO: true
11+
12+
jobs:
13+
build:
14+
name: build
15+
runs-on: windows-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Fetch all tags and branches
21+
run: git fetch --prune --unshallow
22+
- name: Build
23+
run: ./build.ps1
24+
- name: Upload artifacts
25+
uses: actions/upload-artifact@v2
26+
with:
27+
path: artifacts/*.nupkg

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
DOTNET_NOLOGO: true
9+
10+
jobs:
11+
publish:
12+
name: publish
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Fetch all tags and branches
19+
run: git fetch --prune --unshallow
20+
- name: Deploy
21+
env:
22+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
23+
run: ./build.ps1 publish
24+
- name: Upload artifacts
25+
uses: actions/upload-artifact@v2
26+
with:
27+
path: artifacts/*.nupkg

Machine.Specifications.Runner.VisualStudio.sln

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ VisualStudioVersion = 16.0.29209.62
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{405D88EB-F3ED-4B4C-B758-4EA98692F96F}"
77
ProjectSection(SolutionItems) = preProject
8-
appveyor.yml = appveyor.yml
9-
build.cake = build.cake
8+
build.ps1 = build.ps1
9+
build.sh = build.sh
10+
.github\workflows\build.yml = .github\workflows\build.yml
1011
CONTRIBUTING.md = CONTRIBUTING.md
12+
.config\dotnet-tools.json = .config\dotnet-tools.json
13+
.github\workflows\publish.yml = .github\workflows\publish.yml
1114
README.md = README.md
1215
EndProjectSection
1316
EndProject

appveyor.yml

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

build.cake

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

0 commit comments

Comments
 (0)