From f17ecaaa41ebab2e0844acbf88663ff492349fe0 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Sat, 13 Jun 2020 15:25:22 +0200 Subject: [PATCH 1/4] Create dotnet-core.yml --- .github/workflows/dotnet-core.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dotnet-core.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml new file mode 100644 index 0000000..76217ef --- /dev/null +++ b/.github/workflows/dotnet-core.yml @@ -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 From 3f68cfd4a0937a16afec8cd7c61086321c99da05 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Sat, 13 Jun 2020 16:08:48 +0200 Subject: [PATCH 2/4] Revert "Feature/GitHub actions CI" --- .github/workflows/dotnet-core.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/dotnet-core.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml deleted file mode 100644 index 76217ef..0000000 --- a/.github/workflows/dotnet-core.yml +++ /dev/null @@ -1,26 +0,0 @@ -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 From c4953c9c4ebc9f12d86d4c815d336ffa8991d841 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Sat, 13 Jun 2020 15:25:22 +0200 Subject: [PATCH 3/4] Create dotnet-core.yml --- .github/workflows/dotnet-core.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/dotnet-core.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml new file mode 100644 index 0000000..76217ef --- /dev/null +++ b/.github/workflows/dotnet-core.yml @@ -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 From 2d3ac834ab5f6edd40e288c7b5c89bfa1da7f467 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Sat, 13 Jun 2020 15:59:20 +0200 Subject: [PATCH 4/4] Renamed docfx action to deploy.yaml created build-test.yml --- .github/workflows/build-docfx.yaml | 26 ---------- .../{dotnet-core.yml => build-test.yml} | 0 .github/workflows/deploy.yaml | 50 +++++++++++++++++++ 3 files changed, 50 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/build-docfx.yaml rename .github/workflows/{dotnet-core.yml => build-test.yml} (100%) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/build-docfx.yaml b/.github/workflows/build-docfx.yaml deleted file mode 100644 index 541f94a..0000000 --- a/.github/workflows/build-docfx.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Deploy docs - -on: - push: - branches: - - master - -jobs: - hello_world_job: - runs-on: ubuntu-latest - name: Docs build & deploy - 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. - \ No newline at end of file diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/build-test.yml similarity index 100% rename from .github/workflows/dotnet-core.yml rename to .github/workflows/build-test.yml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..8d34200 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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. + \ No newline at end of file