forked from TeamInklings/Octobot
Add Forgejo Actions support
All checks were successful
Publish and deploy / Upload Octobot Stealth to production (push) Successful in 3m30s
All checks were successful
Publish and deploy / Upload Octobot Stealth to production (push) Successful in 3m30s
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
dd35e3a224
commit
94a7893c1b
8 changed files with 11 additions and 172 deletions
|
@ -1,28 +1,29 @@
|
||||||
name: "Publish and deploy"
|
name: "Publish and deploy"
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches:
|
||||||
|
- "stealth"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-solution:
|
upload-solution:
|
||||||
name: Upload Octobot to production
|
name: Upload Octobot Stealth to production
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
environment: production
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET 8
|
||||||
|
uses: https://github.com/actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 8
|
||||||
|
|
||||||
- name: Publish solution
|
- name: Publish solution
|
||||||
run: dotnet publish $PUBLISH_FLAGS
|
run: dotnet publish $PUBLISH_FLAGS
|
||||||
env:
|
env:
|
||||||
|
DOTNET_NOLOGO: true
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||||
PUBLISH_FLAGS: ${{vars.PUBLISH_FLAGS}}
|
PUBLISH_FLAGS: ${{vars.PUBLISH_FLAGS}}
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -1,2 +0,0 @@
|
||||||
* @TeamOctolings/octobot
|
|
||||||
/docs/ @TeamOctolings/octobot-docs
|
|
43
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
43
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
@ -1,43 +0,0 @@
|
||||||
name: Bug Report
|
|
||||||
description: Create a report to help us improve
|
|
||||||
labels: [ "type: bug" ]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
We welcome bug reports! Please see our [contribution guidelines](docs/CONTRIBUTING.md#reporting-bugs) for more information on writing a good bug report. This template will help us gather the information we need to start the triage process.
|
|
||||||
- type: textarea
|
|
||||||
id: background
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: Please share a clear and concise description of the problem.
|
|
||||||
placeholder: Description
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: expected-vs-actual-behavior
|
|
||||||
attributes:
|
|
||||||
label: Expected vs. Actual Behavior
|
|
||||||
description: |
|
|
||||||
Provide a description of the expected behavior compared to the actual behavior.
|
|
||||||
placeholder: Expected vs. Actual Behavior
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: repro-steps
|
|
||||||
attributes:
|
|
||||||
label: Reproduction Steps
|
|
||||||
description: |
|
|
||||||
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible command/action sequence. If possible include text as text rather than screenshots (so it shows up in searches).
|
|
||||||
placeholder: Minimal Reproduction
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: other-info
|
|
||||||
attributes:
|
|
||||||
label: Other Information
|
|
||||||
description: |
|
|
||||||
If you have an idea where the problem might lie, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
|
|
||||||
placeholder: Other Information
|
|
||||||
validations:
|
|
||||||
required: false
|
|
1
.github/ISSUE_TEMPLATE/config.yml
vendored
1
.github/ISSUE_TEMPLATE/config.yml
vendored
|
@ -1 +0,0 @@
|
||||||
blank_issues_enabled: true
|
|
29
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
29
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
|
@ -1,29 +0,0 @@
|
||||||
name: Feature Request
|
|
||||||
description: Create a request for a feature you would like
|
|
||||||
labels: [ "type: feature" ]
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
id: background
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: Please share a clear and concise description of the feature you want.
|
|
||||||
placeholder: Description
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: proposed-solution
|
|
||||||
attributes:
|
|
||||||
label: Proposed Solution
|
|
||||||
description: Please describe the solution you would like.
|
|
||||||
placeholder: Proposed Solution
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: other-info
|
|
||||||
attributes:
|
|
||||||
label: Other Information
|
|
||||||
description: |
|
|
||||||
Please add any other context or screenshots about the feature request here.
|
|
||||||
placeholder: Other Information
|
|
||||||
validations:
|
|
||||||
required: false
|
|
32
.github/dependabot.yml
vendored
32
.github/dependabot.yml
vendored
|
@ -1,32 +0,0 @@
|
||||||
# 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://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "github-actions" # See documentation for possible values
|
|
||||||
directory: "/" # Location of package manifests
|
|
||||||
schedule:
|
|
||||||
interval: "weekly"
|
|
||||||
allow:
|
|
||||||
# Allow both direct and indirect updates for all packages
|
|
||||||
- dependency-type: "all"
|
|
||||||
labels:
|
|
||||||
- "type: change"
|
|
||||||
- "area: build/ci"
|
|
||||||
|
|
||||||
- package-ecosystem: "nuget" # See documentation for possible values
|
|
||||||
directory: "/" # Location of package manifests
|
|
||||||
schedule:
|
|
||||||
interval: "weekly"
|
|
||||||
allow:
|
|
||||||
# Allow both direct and indirect updates for all packages
|
|
||||||
- dependency-type: "all"
|
|
||||||
labels:
|
|
||||||
- "type: change"
|
|
||||||
- "area: build/ci"
|
|
||||||
groups:
|
|
||||||
remora:
|
|
||||||
patterns:
|
|
||||||
- "Remora.Discord.*"
|
|
24
.github/labels.yml
vendored
24
.github/labels.yml
vendored
|
@ -1,24 +0,0 @@
|
||||||
XS:
|
|
||||||
name: size/XS
|
|
||||||
lines: 0
|
|
||||||
color: 3CBF00
|
|
||||||
S:
|
|
||||||
name: size/S
|
|
||||||
lines: 20
|
|
||||||
color: 5D9801
|
|
||||||
M:
|
|
||||||
name: size/M
|
|
||||||
lines: 100
|
|
||||||
color: 7F7203
|
|
||||||
L:
|
|
||||||
name: size/L
|
|
||||||
lines: 200
|
|
||||||
color: A14C05
|
|
||||||
XL:
|
|
||||||
name: size/XL
|
|
||||||
lines: 1000
|
|
||||||
color: C32607
|
|
||||||
XXL:
|
|
||||||
name: size/XXL
|
|
||||||
lines: 2000
|
|
||||||
color: E50009
|
|
31
.github/workflows/build-pr.yml
vendored
31
.github/workflows/build-pr.yml
vendored
|
@ -1,31 +0,0 @@
|
||||||
name: "ReSharper"
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
merge_group:
|
|
||||||
types: [ checks_requested ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
inspect-code:
|
|
||||||
name: Inspect code
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: ReSharper CLI InspectCode
|
|
||||||
uses: muno92/resharper_inspectcode@1.11.8
|
|
||||||
with:
|
|
||||||
solutionPath: ./Octobot.sln
|
|
||||||
ignoreIssueType: InvertIf, ConvertIfStatementToSwitchStatement, ConvertToPrimaryConstructor
|
|
||||||
extensions: ReSharperPlugin.CognitiveComplexity
|
|
||||||
solutionWideAnalysis: true
|
|
Reference in a new issue