Skip to content

implement full coverage toggle #68

implement full coverage toggle

implement full coverage toggle #68

Workflow file for this run

name: Build Repo Listing
on:
workflow_dispatch:
workflow_run:
workflows: [Build Release]
types:
- completed
push:
branches: [main]
release:
types: [published, edited, created, unpublished, deleted, released]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
env:
listPublishDirectory: Website
pathToCi: ci
indexLocation: "https://www.matthewherber.com/VRCSDK-Documentation-Project/index.json"
jobs:
build-listing:
name: build-listing
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # check out this repo
- uses: actions/checkout@v3 # check out automation repo
with:
#repository: vrchat-community/package-list-action
repository: Happyrobot33/package-list-action
path: ${{env.pathToCi}}
clean: false # otherwise the local repo will no longer be checked out
- name: Restore Cache
uses: actions/cache@v3
with:
path: |
${{env.pathToCi}}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Build Package Version Listing
run: ${{env.pathToCi}}/build.cmd BuildMultiPackageListing --root ${{env.pathToCi}} --list-publish-directory $GITHUB_WORKSPACE/${{env.listPublishDirectory}} --current-listing-url ${{env.indexLocation}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET 8.x
uses: actions/setup-dotnet@v3
with:
# Semantic version range syntax or exact version of a dotnet version
dotnet-version: '8.x'
#This handles the back source generation and code coverage listout
- name: Dotnet Run
run: |
cd $GITHUB_WORKSPACE
dotnet run --project $GITHUB_WORKSPACE/CodeCoverage/CodeCoverage.csproj
#Generate the doxygen documentation
- name: Generate C# Documentation
uses: mattnotmitt/[email protected]
with:
working-directory: "./docs/"
doxyfile-path: "./Doxyfile"
enable-latex: true
#Copy docs into the website
- name: Copy Docs
uses: canastro/copy-action@master
with:
source: "./docs/."
target: "./${{env.listPublishDirectory}}/docs/"
flags: "-rp" #recursive and preserve timestamps
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{env.listPublishDirectory}}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2