Merge pull request #193 from fsprojects/daily-perf-improver/fix-appen… #47
This file contains hidden or 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 Publish | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4.3.1 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Install tools | |
| run: dotnet tool restore | |
| - name: Build and Test | |
| run: dotnet test -c Release | |
| - name: Pack | |
| run: dotnet pack -c Release | |
| - name: Build docs | |
| run: dotnet fsdocs build --properties Configuration=Release | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| personal_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./output | |
| publish_branch: gh-pages | |
| force_orphan: true | |
| - name: Publish NuGets (if this version not published before) | |
| run: dotnet nuget push src/FSharp.Control.AsyncSeq/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_TOKEN_2021 }} --skip-duplicate | |
| # NUGET_ORG_TOKEN_2021 is listed in "Repository secrets" in https://github.com/fsprojects/FSharp.Control.AsyncSeq/settings/secrets/actions | |
| # note, the nuget org token expires around 24 July 2022 |