Skip to content

Commit d4aaafa

Browse files
committed
feat: upgrade password
1 parent 177c390 commit d4aaafa

95 files changed

Lines changed: 53691 additions & 18626 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/hooks/commit-msg

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
#
3+
# An example hook script to check the commit log message.
4+
# Called by "git commit" with one argument, the name of the file
5+
# that has the commit message. The hook should exit with non-zero
6+
# status after issuing an appropriate message if it wants to stop the
7+
# commit. The hook is allowed to edit the commit message file.
8+
#
9+
# To enable this hook, rename this file to "commit-msg".
10+
11+
# Uncomment the below to add a Signed-off-by line to the message.
12+
# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13+
# hook is more suited to it.
14+
#
15+
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16+
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17+
18+
# This example catches duplicate Signed-off-by lines.
19+
20+
test "" = "$(grep '^Signed-off-by: ' "$1" |
21+
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22+
echo >&2 Duplicate Signed-off-by lines.
23+
exit 1
24+
}
25+
if ! head -1 "$1" | grep -qE "^(feat|fix|ci|chore|docs|test|style|refactor|chk)(\(.+?\))?: .{1,}$"; then
26+
echo "Aborting commit. Your commit message is invalid. See some examples below:" >&2
27+
echo "feat(logging): added logs for failed signups" >&2
28+
echo "fix(homepage): fixed image gallery" >&2
29+
echo "test(homepage): updated tests" >&2
30+
echo "docs(readme): added new logging table information" >&2
31+
echo "For more information check https://www.conventionalcommits.org/en/v1.0.0/ for more details" >&2
32+
exit 1
33+
fi
34+
if ! head -1 "$1" | grep -qE "^.{1,50}$"; then
35+
echo "Aborting commit. Your commit message is too long." >&2
36+
exit 1
37+
fi

.github/workflows/publish-package.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,18 @@ on:
55
branches: [ master ]
66

77
env:
8-
PACKAGE_MAJOR_VERSION: 5
9-
PACKAGE_MINOR_VERSION: 0
8+
REPOSITORY_URL: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
109
CURRENT_REPO_URL: https://github.com/${{ github.repository }}
1110

1211
jobs:
13-
build:
12+
publish:
1413
runs-on: ubuntu-latest
15-
defaults:
16-
run:
17-
working-directory: src
1814

1915
steps:
2016
- name: Checkout repository
2117
uses: actions/checkout@v2
2218

23-
- name: Setup .NET 5
19+
- name: Setup .NET
2420
uses: actions/setup-dotnet@v1
2521
with:
2622
dotnet-version: 5.0.x
@@ -29,12 +25,35 @@ jobs:
2925
uses: actions/setup-dotnet@v1
3026
with:
3127
dotnet-version: 3.1.x
28+
29+
- name: Setup .NET Core 2.1
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: 2.1.x
33+
34+
- name: Restore dependencies
35+
run: dotnet restore
3236

33-
- name: Generate version
34-
run: echo "PACKAGE_VERSION=$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
37+
- name: Build
38+
run: dotnet build --no-restore
39+
40+
- name: Test
41+
run: dotnet test
42+
43+
- name: Semantic Release
44+
id: semantic
45+
uses: cycjimmy/semantic-release-action@v2
46+
with:
47+
semantic_version: 18.0.1
48+
extra_plugins: |
49+
@semantic-release/changelog
50+
@semantic-release/github
51+
@semantic-release/git
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3554

3655
- name: Generate Package
37-
run: dotnet pack -c Release -o out -p:PackageVersion=${{env.PACKAGE_VERSION}} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
56+
run: dotnet pack -c Release -o out -p:PackageVersion=${{ steps.semantic.outputs.new_release_version }} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
3857

3958
- name: Publish the package to nuget.org
4059
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true -k ${{ secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json

src/.dockerignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md
906 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
1.6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)