Skip to content

Commit 8891be6

Browse files
authored
Initial commit
0 parents  commit 8891be6

File tree

9 files changed

+1407
-0
lines changed

9 files changed

+1407
-0
lines changed

.github/workflows/release.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Publish Packages
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Match version tags like v1.0.0
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: '9.x' # Adjust the version as needed
20+
21+
- name: Install dependencies
22+
run: dotnet restore
23+
24+
- name: Build the solution
25+
run: dotnet build --no-restore
26+
27+
# Ensure that the tests must pass
28+
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
29+
- name: Run tests
30+
run: dotnet test --no-build --verbosity normal
31+
32+
publish:
33+
34+
runs-on: ubuntu-latest
35+
36+
needs: test
37+
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v3
41+
42+
- name: Setup .NET
43+
uses: actions/setup-dotnet@v3
44+
with:
45+
dotnet-version: '9.x'
46+
47+
- name: Restore dependencies
48+
run: dotnet restore DependencyInjection.sln
49+
50+
- name: Build
51+
run: dotnet build DependencyInjection.sln --configuration Release --no-restore
52+
53+
- name: Publish to NuGet
54+
env:
55+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
56+
run: |
57+
dotnet nuget push src/TEMPLATE/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Run TODO to Issue"
2+
on:
3+
push:
4+
branches:
5+
- core
6+
jobs:
7+
build:
8+
runs-on: "ubuntu-latest"
9+
steps:
10+
- uses: "actions/checkout@v4"
11+
- name: "TODO to Issue"
12+
uses: "alstr/todo-to-issue-action@v5"
13+
with:
14+
PROJECT: "organization/InfiniLore/InfiniLore"
15+
PROJECTS_SECRET: "${{ secrets.PROJECTS_SECRET }}"
16+
ISSUE_TEMPLATE: |
17+
### 📝 Todo : ** {{ title }} **
18+
**Description:**
19+
{{ body }}
20+
21+
**Code Snippet:**
22+
{{ snippet }}
23+
24+
**File:**
25+
{{ url }}
26+
27+
IDENTIFIERS: '[{"name": "TODO", "labels": ["todo"]}]'
28+
CLOSE_ISSUES: "true"

0 commit comments

Comments
 (0)