Merge pull request #1515 from pkese/fix-worldbank-url #125
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 Test and Publish (release) | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.203 | |
- name: Restore .NET local tools | |
run: dotnet tool restore | |
- name: Restore packages | |
run: dotnet paket restore | |
- name: Build and test | |
run: dotnet fake build -t All | |
- name: Deploy documentation from master | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output | |
publish_branch: gh-pages | |
force_orphan: true | |
- name: Examine bin | |
run: ls -r bin | |
- name: Publish NuGets (if this version not published before) | |
run: dotnet nuget push bin\FSharp.Data.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_TOKEN_2020 }} --skip-duplicate | |
# NUGET_ORG_TOKEN_2020 is listed in "Repository secrets" in https://github.com/fsprojects/FSharp.Data/settings/secrets/actions | |
# note, the nuget org token expires around June 2021 |