diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 03ec54546..a344594aa 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,28 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - - package-ecosystem: "nuget" # See documentation for possible values - directory: "/" # Location of package manifests + # Maintain dependencies for NuGet + - package-ecosystem: "nuget" + directory: "/" + schedule: + interval: "daily" + assignees: + - "NyuwBot" + reviewers: + - "Aiko-IT-Systems/discatsharp" + - "Lulalaby" + labels: + - "dependencies" + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: "daily" + assignees: + - "NyuwBot" + reviewers: + - "Aiko-IT-Systems/discatsharp" + - "Lulalaby" + labels: + - "ci/cd" + - "dependencies" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4671f581d..7b1eea54f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,77 +1,77 @@ name: "DisCatSharp Docs" on: push: branches: [ main ] workflow_dispatch: jobs: build: runs-on: windows-latest steps: - uses: actions/checkout@v3 with: path: DisCatSharp - uses: actions/checkout@v3 with: repository: Aiko-IT-Systems/DisCatSharp.Docs path: DisCatSharp.Docs token: ${{ secrets.NYUW_TOKEN_GH }} - name: Setup .NET uses: actions/setup-dotnet@v2 with: dotnet-version: 6.0.202 - name: Restore dependencies working-directory: ./DisCatSharp run: dotnet restore - name: Build Projects working-directory: ./DisCatSharp run: dotnet build --no-restore - name: Build Docs working-directory: ./DisCatSharp shell: pwsh run: | ./rebuild-docs.ps1 -DocsPath "./DisCatSharp.Docs" -Output ".." -PackageName "dcs-docs" - name: Purge old docs working-directory: ./DisCatSharp.Docs shell: pwsh run: | Get-ChildItem -Exclude .git* | Remove-Item -Recurse -Force - name: Extract new docs shell: pwsh run: | Expand-Archive -Path dcs-docs.zip DisCatSharp.Docs/ - name: Commit and push changes uses: EndBug/add-and-commit@main with: cwd: ./DisCatSharp.Docs default_author: user_info author_name: DisCatSharp author_email: team@aitsys.dev committer_name: NyuwBot committer_email: nyuw@aitsys.dev commit: --signoff message: 'Docs update for commit ${{ github.repository }} (${{ github.sha }})' publish: runs-on: ubuntu-latest needs: build steps: - name: Get SSH Agent - uses: webfactory/ssh-agent@v0.5.3 + uses: webfactory/ssh-agent@v0.5.4 with: ssh-private-key: ${{ secrets.AITSYS_SSH }} - name: Publish on server run: | ssh -o StrictHostKeyChecking=no -T root@80.153.182.68 -f 'cd /var/www/dcs/docs && git pull -f' diff --git a/DisCatSharp.Docs/docfx.json b/DisCatSharp.Docs/docfx.json index a1fba97df..9b85b07b6 100644 --- a/DisCatSharp.Docs/docfx.json +++ b/DisCatSharp.Docs/docfx.json @@ -1,101 +1,102 @@ { "metadata": [ { "src": [ { "src": "../", "files": [ "**.csproj" ], "exclude": [ "**/obj/**", "**/bin/**", "_site/**" ] } ], "dest": "api", "filter": "filter_config.yml" } ], "build": { "content": [ { "files": [ "api/**.yml", "api/**.md" ] }, { "files": [ "**.md", "toc.yml", "faq/**.yml", "faq/**.md", "articles/**.yml", "articles/**.md", "natives/**.yml", "natives/**.md" ], "exclude": [ "**/bin/**", "**/obj/**", "_site/**", "dcs/**" ] } ], "resource": [ { "files": [ "images/**", "natives/**.zip" ], "exclude": [ "**/bin/**", "**/obj/**", "_site/**", "images/_**" ] } ], "overwrite": [ { "files": [], "exclude": [ "**/bin/**", "**/obj/**", "_site/**" ] } ], "dest": "_site", "globalMetadata": { "_appFooter": "© 2021-2022 Aiko IT Systems", "_enableSearch": true, "_enableNewTab": true, "_appTitle": "DisCatSharp Docs", "_gitUrlPattern": "git", "_gitContribute": { "repo": "https://github.com/Aiko-IT-Systems/DisCatSharp", "branch": "main" } }, "disableGitFeatures": false, "exportRawModel": true, + "rawModelOutputFolder": "_site/.bot-query/raw/", "globalMetadataFiles": [], "fileMetadataFiles": [], "template": [ "dcs" ], "postProcessors": ["ExtractSearchIndex", "CustomMemberIndexer"], "noLangKeyword": false, "keepFileLink": false, "cleanupCacheHistory": false, "sitemap": { "baseUrl": "https://docs.dcs.aitsys.dev/", "changefreq": "hourly", "priority": 1.0 } } }