Skip to content

Commit 1736699

Browse files
committed
Merge branch 'main' into dev=main
2 parents de9c9e7 + 69f747e commit 1736699

2 files changed

Lines changed: 70 additions & 11 deletions

File tree

.github/FUNDING.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# These are supported funding model platforms
22

3-
github: [Dynesshely] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
liberapay: # Replace with a single Liberapay username
10-
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
12-
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
3+
github: [Crequency, Dynesshely] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
5+
# patreon: # Replace with a single Patreon username
6+
# open_collective: # Replace with a single Open Collective username
7+
# ko_fi: # Replace with a single Ko-fi username
8+
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
9+
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
10+
# liberapay: # Replace with a single Liberapay username
11+
# issuehunt: # Replace with a single IssueHunt username
12+
# otechie: # Replace with a single Otechie username
13+
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
14+
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/auto-release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: daily-build
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * 0'
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: |
20+
6.0.x
21+
7.0.x
22+
include-prerelease: false
23+
24+
- name: Build
25+
shell: pwsh
26+
run: |
27+
cd Common.BasicHelper
28+
dotnet build -c Release
29+
30+
cd bin/Release
31+
$out = ls
32+
if ("$out" -match 'Common.BasicHelper.(\d*).(\d*).(\d*).(\d*).nupkg') {
33+
$v1 = $Matches.1
34+
$v2 = $Matches.2
35+
$v3 = $Matches.3
36+
$v4 = $Matches.4
37+
$version = "$v1.$v2.$v3.$v4"
38+
39+
echo "version=$version"
40+
echo "version=$version" >> $env:GITHUB_ENV
41+
echo "canRelease=true" >> $env:GITHUB_ENV
42+
} else {
43+
echo "canRelease=false" >> $env:GITHUB_ENV
44+
}
45+
46+
cd ../../..
47+
48+
- name: Create Release and Upload Release Asset
49+
if: ${{ env.canRelease == 'true' }}
50+
uses: softprops/action-gh-release@v1
51+
with:
52+
tag_name: v${{ env.version }}
53+
name: Daily Release v${{ env.version }}
54+
body: Auto release by Actions.
55+
draft: false
56+
prerelease: true
57+
files: |
58+
Common.BasicHelper/bin/Release/*.nupkg

0 commit comments

Comments
 (0)