Skip to content

Merge PR #2 from nblockchain/wip/modernizeCI #6

Merge PR #2 from nblockchain/wip/modernizeCI

Merge PR #2 from nblockchain/wip/modernizeCI #6

Workflow file for this run

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.0
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build
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}}