Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0-beta3 #23

Merged
merged 4 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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