diff --git a/.github/workflows/ci.yml b/.github/workflows/CI.yml similarity index 55% rename from .github/workflows/ci.yml rename to .github/workflows/CI.yml index ffe2c1e7f..a92adac28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/CI.yml @@ -1,10 +1,19 @@ -name: ci -on: push +name: CI + +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: env: - BASE_VERSION: 0.95 + BASE_VERSION: 0.95.0 runs-on: windows-latest steps: - uses: actions/checkout@v1 @@ -12,6 +21,7 @@ jobs: run: | dotnet build Nethereum.sln -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}}