diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..058d6ea
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,23 @@
+name: build
+
+on:
+ push:
+ branches:
+ - '!dummy'
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.0.100'
+ - name: build
+ run: dotnet build
+ - name: test 2.2
+ run: dotnet test --framework netcoreapp2.2 --no-build
+ - name: test 3.0
+ run: dotnet test --framework netcoreapp3.0 --no-build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..095f6f5
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,38 @@
+name: release
+
+on:
+ push:
+ branches:
+ - 'actions'
+ tags:
+ - '!dummy'
+
+jobs:
+ release:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '2.2.402'
+ - uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.0.100'
+ - run: mkdir -p artifacts
+ - uses: actions/upload-artifact@master
+ with:
+ name: package
+ path: artifacts
+ - name: build
+ run: dotnet build -c Release
+ - name: test 2.2
+ run: dotnet test -c Release --framework netcoreapp2.2 --no-build
+ - name: test 3.0
+ run: dotnet test -c Release --framework netcoreapp3.0 --no-build
+ - name: pack
+ shell: bash
+ run: |
+ version=`git describe --tags --dirty`
+ dotnet pack -c Release --no-build -o artifacts -p:Version=$version
diff --git a/global.json b/global.json
index 6b64107..79422f0 100644
--- a/global.json
+++ b/global.json
@@ -1,5 +1,5 @@
{
"sdk": {
- "version": "2.2.103"
+ "version": "3.0.100"
}
}
diff --git a/samples/Sample/Sample.csproj b/samples/Sample/Sample.csproj
index ecb432d..7773026 100644
--- a/samples/Sample/Sample.csproj
+++ b/samples/Sample/Sample.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp2.2
+ netcoreapp2.2;netcoreapp3.0
Debug;Release;DebugNoRedirect
diff --git a/test/GetPass.Test/GetPass.Test.csproj b/test/GetPass.Test/GetPass.Test.csproj
index 2a5db44..80fe549 100644
--- a/test/GetPass.Test/GetPass.Test.csproj
+++ b/test/GetPass.Test/GetPass.Test.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.2
+ netcoreapp2.2;netcoreapp3.0
false