Skip to content

fix: 缩短拒绝提示长度 #314

fix: 缩短拒绝提示长度

fix: 缩短拒绝提示长度 #314

Workflow file for this run

name: Build and deploy xfs
on:
push:
branches: [ master ]
paths:
- 'Bleatingsheep.NewHydrant/**'
- 'Bleatingsheep.NewHydrant.Bot/**'
- 'Bleatingsheep.NewHydrant.Bot.Common/**'
- 'Bleatingsheep.NewHydrant.Bot.Private/**'
- 'Bleatingsheep.NewHydrant.Bot.Public/**'
- 'Bleatingsheep.NewHydrant.Data/**'
- 'Bleatingsheep.OsuMixedApi/**'
- 'Bleatingsheep.OsuQqBot.Database/**'
- '.github/workflows/dotnet.yml'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build -c Release Bleatingsheep.NewHydrant.Bot
- name: Publish
run: dotnet publish --no-build -c Release -o bin/publish Bleatingsheep.NewHydrant.Bot
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: Binary
path: bin/publish
deploy:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: Binary
path: bin/publish
- name: Push to Other Branches
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: bin/publish
publish_branch: build