Skip to content

Commit b399959

Browse files
committed
Add project files.
0 parents  commit b399959

File tree

1,448 files changed

+238593
-0
lines changed

Some content is hidden

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

1,448 files changed

+238593
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/wwwroot/libs/** linguist-vendored

.github/workflows/build-all.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build all
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
- dev
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: NuGet/setup-nuget@v1
14+
- uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: '9.0.100'
17+
18+
- name: read common.props
19+
id: commonProps
20+
uses: juliangruber/read-file-action@v1
21+
with:
22+
path: ./common.props
23+
24+
- name: get version
25+
id: getVersion
26+
uses: AsasInnab/regex-action@v1
27+
with:
28+
regex_pattern: '(?<=>)[^<>]+(?=</Version>)'
29+
regex_flags: 'gim'
30+
search_string: '${{ steps.commonProps.outputs.content }}'
31+
32+
- name: dotnet restore
33+
run: dotnet restore -s "https://api.nuget.org/v3/index.json"
34+
35+
- name: dotnet build
36+
run: dotnet build -c Release
37+
38+
- name: dotnet test
39+
run: dotnet test -c Release --no-restore --no-build

.github/workflows/publish-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: publish to syrnaabp.io
2+
on:
3+
push:
4+
branches:
5+
- masterx
6+
- mainx
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
fetch-depth: 0
16+
17+
- name: Find and Replace
18+
uses: jacobtomlinson/gha-find-replace@master
19+
with:
20+
find: \]\((/docs/)
21+
replace: "](/modules/${{ github.event.repository.name }}/"
22+
include: docs/**.md
23+
24+
- name: Pull repo and change files
25+
id: change
26+
run: |
27+
ls
28+
git clone https://github.com/SyrnaAbp/syrnaabp.github.io
29+
cd syrnaabp.github.io
30+
rm -rf docs/modules/${{ github.event.repository.name }}
31+
rm -rf docs/.vuepress/public/modules/${{ github.event.repository.name }}
32+
cp -rf ../docs/ docs/modules/${{ github.event.repository.name }}
33+
cp -rf ../docs/ docs/.vuepress/public/modules/${{ github.event.repository.name }}
34+
git add --all
35+
echo "##[set-output name=diff;]$(git diff --staged)"
36+
- name: Commit files
37+
if: steps.change.outputs.diff
38+
run: |
39+
ls
40+
cd syrnaabp.github.io
41+
git config --local user.email "[email protected]"
42+
git config --local user.name "GitHub Action"
43+
git commit -m "Update the docs of ${{ github.event.repository.name }}" -a
44+
- name: Push changes
45+
if: steps.change.outputs.diff
46+
uses: ad-m/github-push-action@master
47+
with:
48+
github_token: ${{ secrets.SYRNAABP_IO_ACCESS_TOKEN }}
49+
repository: SyrnaAbp/syrnaabp.github.io
50+
directory: syrnaabp.github.io

.github/workflows/publish.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: publish to nuget
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: NuGet/setup-nuget@v1
13+
- uses: actions/setup-dotnet@v3
14+
with:
15+
dotnet-version: '9.0.100'
16+
17+
- name: read common.props
18+
id: commonProps
19+
uses: juliangruber/read-file-action@v1
20+
with:
21+
path: ./common.props
22+
23+
- name: get version
24+
id: getVersion
25+
uses: AsasInnab/regex-action@v1
26+
with:
27+
regex_pattern: '(?<=>)[^<>]+(?=</Version>)'
28+
regex_flags: 'gim'
29+
search_string: '${{ steps.commonProps.outputs.content }}'
30+
31+
- name: dotnet restore
32+
run: dotnet restore -s "https://api.nuget.org/v3/index.json"
33+
34+
- name: dotnet build
35+
run: dotnet build -c Release
36+
37+
# - name: dotnet test
38+
# run: dotnet test -c Release --no-restore --no-build
39+
40+
- name: dotnet pack
41+
run: dotnet pack -c Release --no-build --property PackageOutputPath=${{ github.workspace }}/nugetPackages/
42+
43+
- name: remove unused packages
44+
run: |
45+
cd ${{ github.workspace }}/nugetPackages
46+
shopt -s extglob
47+
rm -f !(Syrna.*)
48+
rm -f !(*.${{ steps.getVersion.outputs.first_match }}.nupkg)
49+
rm -f *.Blazor.Host.*
50+
rm -f *.Blazor.Server.Host.*
51+
rm -f *.Host.Shared.*
52+
rm -f *.HttpApi.Host.*
53+
rm -f *.IdentityServer.*
54+
rm -f *.AuthServer.*
55+
rm -f *.Web.Host.*
56+
rm -f *.Web.Unified.*
57+
rm -f *.HttpApi.Client.ConsoleTestApp.*
58+
rm -f *.Tests.*
59+
rm -f *.TestBase.*
60+
ls
61+
62+
- name: dotnet nuget push to GitHub
63+
uses: tanaka-takayoshi/[email protected]
64+
with:
65+
nupkg-path: '${{ github.workspace }}/nugetPackages/*.nupkg'
66+
repo-owner: 'SyrnaAbp'
67+
gh-user: 'SyrnaAbp'
68+
token: ${{ secrets.GITHUB_TOKEN }}
69+
70+
- name: dotnet nuget push to NuGet
71+
run: dotnet nuget push ${{ github.workspace }}/nugetPackages/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
72+
73+
- name: determine if the tag exists
74+
uses: mukunku/[email protected]
75+
id: checkTag
76+
with:
77+
tag: ${{ steps.getVersion.outputs.first_match }}
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
81+
- name: add git tag
82+
if: ${{ steps.checkTag.outputs.exists == 'false' }}
83+
uses: tvdias/[email protected]
84+
with:
85+
repo-token: ${{ secrets.GITHUB_TOKEN }}
86+
tag: ${{ steps.getVersion.outputs.first_match }}

0 commit comments

Comments
 (0)