Skip to content

Commit

Permalink
Merge PR #2 from nblockchain/wip/modernizeCI
Browse files Browse the repository at this point in the history
CI: modernize.
  • Loading branch information
knocte committed Mar 3, 2024
2 parents 8d0a242 + eb8647d commit abe1e28
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
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
- 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}}

0 comments on commit abe1e28

Please sign in to comment.