Build and deploy to NuGet #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy to NuGet | |
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.99.0 | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build | |
shell: cmd | |
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}} |