diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6564b1b4f..781092190 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,26 @@ name: "Build" on: push: pull_request: workflow_dispatch: jobs: build: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - dotnet: [7.0.0] + dotnet: [7.0.100] runs-on: ${{ matrix.os }} name: Build library steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: dotnet-version: ${{ matrix.dotnet }} - name: Restore dependencies run: dotnet restore - name: Build library run: dotnet build -c Release - name: Test library run: dotnet test --verbosity normal -c Release diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index f8458094b..c8f34dce6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,105 +1,105 @@ name: "Documentation" on: push: branches: [ main ] workflow_dispatch: env: DOTNET_NOLOGO: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_CLI_TELEMETRY_OPTOUT: true jobs: build: runs-on: ubuntu-latest name: Build documentation steps: - name: Checkout repository uses: actions/checkout@v3 with: path: DisCatSharp - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 7.0.0 + dotnet-version: 7.0.100 - name: Restore packages working-directory: DisCatSharp run: dotnet restore - name: Build library working-directory: DisCatSharp run: dotnet build -c Release - name: Test library working-directory: DisCatSharp run: dotnet test -c Release continue-on-error: true - name: Build Docs working-directory: DisCatSharp shell: pwsh run: ./rebuild-docs.ps1 -DocsPath "./DisCatSharp.Docs" -Output ".." -PackageName "dcs-docs" - name: Upload packed docs uses: actions/upload-artifact@v3 with: name: dcs-docs.zip path: dcs-docs.zip retention-days: 30 documentation: runs-on: windows-latest name: Upload documentation needs: build steps: - name: Checkout docs repository uses: actions/checkout@v3 with: repository: Aiko-IT-Systems/DisCatSharp.Docs path: DisCatSharp.Docs token: ${{ secrets.NYUW_TOKEN_GH }} - name: Download packed docs uses: actions/download-artifact@v3 with: name: dcs-docs.zip - 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: Delete packed docs uses: geekyeggo/delete-artifact@v2 with: name: dcs-docs.zip - 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-main: runs-on: ubuntu-latest name: Publish documentation on main server needs: documentation steps: - name: Get SSH Agent uses: webfactory/ssh-agent@v0.7.0 with: ssh-private-key: ${{ secrets.AITSYS_SSH }} - name: Publish on server continue-on-error: true run: ssh -o StrictHostKeyChecking=no -T root@80.153.182.68 -f 'cd /var/www/dcs.aitsys.dev/docs && git pull -f && service apache2 restart' publish-backup: runs-on: ubuntu-latest name: Publish documentation on backup server needs: documentation steps: - name: Get SSH Agent uses: webfactory/ssh-agent@v0.7.0 with: ssh-private-key: ${{ secrets.AITSYS_SSH }} - name: Publish on server continue-on-error: true run: ssh -o StrictHostKeyChecking=no -T root@207.180.240.241 -f 'cd /var/www/dcsdocs && git pull -f && service apache2 restart' diff --git a/.github/workflows/documentation_test.yml b/.github/workflows/documentation_test.yml index 618648437..507cc7914 100644 --- a/.github/workflows/documentation_test.yml +++ b/.github/workflows/documentation_test.yml @@ -1,42 +1,42 @@ name: "Test Documentation" on: workflow_dispatch: env: DOTNET_NOLOGO: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_CLI_TELEMETRY_OPTOUT: true jobs: build: runs-on: ubuntu-latest name: Build documentation steps: - name: Checkout repository uses: actions/checkout@v3 with: path: DisCatSharp - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 7.0.0 + dotnet-version: 7.0.100 - name: Restore packages working-directory: DisCatSharp run: dotnet restore - name: Build library working-directory: DisCatSharp run: dotnet build -c Release - name: Test library working-directory: DisCatSharp run: dotnet test -c Release continue-on-error: true - name: Build Docs working-directory: DisCatSharp shell: pwsh run: ./rebuild-docs.ps1 -DocsPath "./DisCatSharp.Docs" -Output ".." -PackageName "dcs-docs" - name: Upload packed docs uses: actions/upload-artifact@v3 with: name: dcs-docs.zip path: dcs-docs.zip retention-days: 30 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 448af4158..0fcabf46e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,47 +1,47 @@ name: "Release DisCatSharp" on: workflow_dispatch: inputs: version_suffix: description: "Version Suffix" required: false type: string release_as_prerelease: description: "Release as pre-release" required: true type: boolean jobs: release: runs-on: windows-latest name: Build library and release steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: - dotnet-version: 7.0.0 + dotnet-version: 7.0.100 - name: Restore dependencies run: dotnet restore - name: Build library as full release if: ${{!inputs.release_as_prerelease}} shell: pwsh run: .\rebuild-lib.ps1 -ArtifactLocation ../dcs-artifacts -Configuration Release - name: Build library as pre-release if: ${{inputs.release_as_prerelease}} shell: pwsh run: .\rebuild-lib.ps1 -ArtifactLocation ../dcs-artifacts -Configuration Release -VersionSuffix ${{github.event.inputs.version_suffix}} - name: Remove invalid packages shell: pwsh run: rm *.symbols.* working-directory: ../dcs-artifacts - name: Publish to NuGet shell: pwsh run: dotnet nuget push --source https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} * --skip-duplicate working-directory: ../dcs-artifacts - name: Publish to GitHub Packages shell: pwsh run: dotnet nuget push --source https://nuget.pkg.github.com/Aiko-IT-Systems/index.json -k ${{secrets.NYUW_TOKEN_GH}} * working-directory: ../dcs-artifacts diff --git a/DisCatSharp.ApplicationCommands/global.json b/DisCatSharp.ApplicationCommands/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.ApplicationCommands/global.json +++ b/DisCatSharp.ApplicationCommands/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.CommandsNext/global.json b/DisCatSharp.CommandsNext/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.CommandsNext/global.json +++ b/DisCatSharp.CommandsNext/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Common/global.json b/DisCatSharp.Common/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Common/global.json +++ b/DisCatSharp.Common/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Configuration.Tests/global.json b/DisCatSharp.Configuration.Tests/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Configuration.Tests/global.json +++ b/DisCatSharp.Configuration.Tests/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Configuration/global.json b/DisCatSharp.Configuration/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Configuration/global.json +++ b/DisCatSharp.Configuration/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.EventHandlers.Tests/global.json b/DisCatSharp.EventHandlers.Tests/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.EventHandlers.Tests/global.json +++ b/DisCatSharp.EventHandlers.Tests/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Hosting.DependencyInjection/global.json b/DisCatSharp.Hosting.DependencyInjection/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Hosting.DependencyInjection/global.json +++ b/DisCatSharp.Hosting.DependencyInjection/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Hosting.Tests/global.json b/DisCatSharp.Hosting.Tests/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Hosting.Tests/global.json +++ b/DisCatSharp.Hosting.Tests/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Hosting/global.json b/DisCatSharp.Hosting/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Hosting/global.json +++ b/DisCatSharp.Hosting/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Interactivity/global.json b/DisCatSharp.Interactivity/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Interactivity/global.json +++ b/DisCatSharp.Interactivity/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Lavalink/global.json b/DisCatSharp.Lavalink/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Lavalink/global.json +++ b/DisCatSharp.Lavalink/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.Tests/global.json b/DisCatSharp.Tests/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.Tests/global.json +++ b/DisCatSharp.Tests/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.VoiceNext.Natives/global.json b/DisCatSharp.VoiceNext.Natives/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.VoiceNext.Natives/global.json +++ b/DisCatSharp.VoiceNext.Natives/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp.VoiceNext/global.json b/DisCatSharp.VoiceNext/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp.VoiceNext/global.json +++ b/DisCatSharp.VoiceNext/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/DisCatSharp/global.json b/DisCatSharp/global.json index 816273d10..0f01f74d0 100644 --- a/DisCatSharp/global.json +++ b/DisCatSharp/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file diff --git a/global.json b/global.json index 3d9090158..a38087636 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "7.0.0", + "version": "7.0.100", "rollForward": "latestMinor", "allowPrerelease": true } } \ No newline at end of file