Skip to content

Commit

Permalink
爆爆爆爆 (#22)
Browse files Browse the repository at this point in the history
* 紧急补丁

* 误触依赖回滚

* 问题修复与排版调整

* 自动化、注解更新和功能修复

* 错误的版本

* 错误的版本

* 错误的版本

* Docfx 修复

* docs 测试

* 测试

* 补全依赖

* test

* 正式修复

* ...

* 更新文档

* 许可证的更新和部分修正

* 命名空间修正

* 修复异常和清理规则

* u index
  • Loading branch information
YongAn404 authored Nov 5, 2024
1 parent 7d89985 commit 752d7ff
Show file tree
Hide file tree
Showing 26 changed files with 583 additions and 726 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@ name: YongAnFrame Dev CI

on:
push:
branches:
- dev
branches: ["dev"]
pull_request:
branches:
- dev
branches: ["dev"]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Checkout
uses: actions/checkout@v4

- name: Setup .NET
- name: Setup Dotnet
uses: actions/setup-dotnet@v4

- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.0
uses: NuGet/setup-nuget@v2

- name: Restore NuGet packages
run: nuget restore YongAnFrame.sln
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Simple workflow for deploying static content to GitHub Pages
name: Build and Publish Docfx Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
publish-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: windows-latest
steps:
- name: Dotnet Checkout
uses: actions/checkout@v4

- name: Dotnet Setup
uses: actions/setup-dotnet@v4

- name: Setup NuGet
uses: NuGet/setup-nuget@v2

- name: Restore NuGet packages
run: nuget restore YongAnFrame.sln

- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
13 changes: 6 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@ name: YongAnFrame Master CI

on:
push:
branches:
- master
branches: ["master"]
pull_request:
branches:
- master
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Checkout
uses: actions/checkout@v4

- name: Setup .NET
- name: Setup Dotnet
uses: actions/setup-dotnet@v4

- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.0
uses: NuGet/setup-nuget@v2

- name: Restore NuGet packages
run: nuget restore YongAnFrame.sln
Expand Down
4 changes: 1 addition & 3 deletions Commands/ExpCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
using Exiled.API.Features;
using Exiled.Permissions.Extensions;
using System;
using YongAnFrame;
using YongAnFrame.Commands;

namespace BAPlugin.Command
namespace YongAnFrame.Commands
{
[CommandHandler(typeof(RemoteAdminCommandHandler))]
public class ExpCommand : ICommand
Expand Down
2 changes: 1 addition & 1 deletion Components/CapacityList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public T this[int index]
}
set
{

list[index] = value;
}
}

Expand Down
Loading

0 comments on commit 752d7ff

Please sign in to comment.