From 5cf27346d4b9a1a3b76eaadd6f32e8cd1aef8cb2 Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Sun, 3 Mar 2024 15:56:42 +0100 Subject: [PATCH 1/3] GitHubCI: rename workflow (1/2) --- .github/workflows/{ci.yml => ContinuousIntegration.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => ContinuousIntegration.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ContinuousIntegration.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/ContinuousIntegration.yml From f931af617c5e3a271c0b6c48c227a10890339a36 Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Sun, 3 Mar 2024 15:57:39 +0100 Subject: [PATCH 2/3] GitHubCI: rename workflow (2/2) --- .github/workflows/{ContinuousIntegration.yml => CI.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ContinuousIntegration.yml => CI.yml} (100%) diff --git a/.github/workflows/ContinuousIntegration.yml b/.github/workflows/CI.yml similarity index 100% rename from .github/workflows/ContinuousIntegration.yml rename to .github/workflows/CI.yml From 3145f4fe3bbf66a014d6f1108f2b372eb73ff171 Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Sun, 3 Mar 2024 15:59:40 +0100 Subject: [PATCH 3/3] CI: modernize Add many non-push triggers (but only upload to nuget when it's a push to master). --- .github/workflows/CI.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 64454cb..d187e3c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,5 +1,14 @@ name: Build and deploy to NuGet -on: push + +on: + push: + pull_request: + workflow_dispatch: + + # see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule + schedule: + # daily + - cron: "0 0 * * *" jobs: build_and_deploy: @@ -13,6 +22,7 @@ jobs: run: | dotnet build -p:Configuration=Release - name: Package and upload + if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: | git clone https://github.com/nblockchain/fsx fsx\Tools\fsi.bat fsx\Tools\nugetPush.fsx $env:BASE_VERSION ${{secrets.NUGET_API_KEY}}