Skip to content

Enhancements ConcatAsyncOperationExecutor test #31

Enhancements ConcatAsyncOperationExecutor test

Enhancements ConcatAsyncOperationExecutor test #31

name: "Publish"
on:
release:
types: [released]
push:
branches:
- main
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x
- name: Update docfx
run: dotnet tool update -g docfx
- name: Build and Test
run: |
dotnet build
dotnet test
- name : Set Version variable from tag
if: (github.event_name == 'release')
run: |
TAG=${{ github.event.release.tag_name }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Pack NuGet Package
if: (github.event_name == 'release')
run: dotnet pack ./src/Yolu/Yolu.csproj -c Release --include-symbols --include-source -p:PackageVersion=${VERSION}
- name: Publish NuGet Package
if: (github.event_name == 'release')
run: dotnet nuget push './src/**/*.nupkg' -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Generate Docs
if: (github.event_name == 'release')
run: docfx ./docfx.json
# Deploy the site
- name: Deploy Github Pages
if: (github.event_name == 'release')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./artifacts/_site
force_orphan: true