forked from AlanRynne/AR_Lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/CI-deploy-action' into develop
- Loading branch information
Showing
3 changed files
with
76 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: .NET Core | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🛎 Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: 🚧 Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.101 | ||
- name: ⚙️ Install dependencies | ||
run: dotnet restore | ||
- name: 🏗 Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: 🧪 Test | ||
run: dotnet test --no-restore --verbosity normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build_and_publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛎 Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: 🚧 Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.101 | ||
source-url: https://nuget.pkg.github.com/Paramdigma/index.json | ||
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: ⚙️ Install dependencies | ||
run: dotnet restore | ||
- name: 🏗 Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: 🧪 Test | ||
run: dotnet test --no-restore --verbosity normal | ||
- name: 📦 Create the package | ||
run: dotnet pack --configuration Release src/Paramdigma.Core.csproj | ||
- name: 🚀 Publish the package to GPR | ||
run: dotnet nuget push src/bin/Release/*.nupkg | ||
|
||
deploy_docs: | ||
runs-on: ubuntu-latest | ||
name: Docs build & deploy | ||
needs: build_and_publish | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: 🛎 Checkout | ||
- run: "rm .gitignore && ls ." | ||
name: 🗑 Remove .gitignore file | ||
- uses: nikeee/docfx-action@master | ||
name: 📚 Build Docs | ||
with: | ||
args: docfx_project/docfx.json | ||
- name: 🚀 Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: docs/ # The folder the action should deploy. | ||
|