Update C# API docs workflow (#12796)

This commit is contained in:
Nat Kershaw (MSFT) 2022-08-31 09:41:01 -07:00 committed by GitHub
parent 6b148e15e1
commit cc94ba7740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,11 @@
name: Update C# API Docs Windows
name: Update C# API Docs
on:
push:
branches:
- main
- csharp-doc-update
jobs:
publish:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
@ -26,12 +25,10 @@ jobs:
clean: false
- name: Move API docs into target area
run: |
rm -r -fo docs/api/csharp
MOVE csharp/ApiDocs/csharp docs/api
rm -r -fo csharp/ApiDocs/obj
rm -r -fo csharp/ApiDocs/bin
rm -r -fo csharp/ApiDocs/log.txt
rm -r -fo csharp/src
rm -rf docs/api/csharp
mv csharp/ApiDocs/csharp docs/api
rm -r csharp/ApiDocs
rm -r csharp/src
- name: Git Checkin
run: git add .
- name: Create Pull Request