File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 types : [published]
99
1010jobs :
11+ version :
12+ runs-on : ubuntu-latest
13+ name : Build and bump version
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ ref : main
19+
20+ - name : Get version
21+ run : |
22+ tag=${{ github.event.release.tag_name }}
23+ echo "VERSION=${tag#v}" >> $GITHUB_ENV
24+
25+ - name : Bump build version
26+ id : bump
27+ uses : vers-one/dotnet-project-version-updater@v1.3
28+ with :
29+ file : " Web.csproj"
30+ version : ${{ env.VERSION }}
31+
32+ - run : |
33+ git config user.name "${GITHUB_ACTOR}"
34+ git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
35+ git add .
36+ git commit -m "Bump project version to ${{ steps.bump.outputs.newVersion }}"
37+ git push
38+
1139 release :
40+ needs : version
1241 name : Release
1342 strategy :
1443 matrix :
@@ -26,17 +55,19 @@ jobs:
2655 runs-on : ${{ matrix.os }}
2756 steps :
2857 - name : Checkout
29- uses : actions/checkout@v1
58+ uses : actions/checkout@v4
59+ with :
60+ ref : main
3061
3162 - name : Setup dotnet
32- uses : actions/setup-dotnet@v1
63+ uses : actions/setup-dotnet@v4
3364 with :
3465 dotnet-version : 7.0.115
3566
3667 - name : Build
3768 shell : bash
3869 run : |
39- tag=$(git describe --tags --abbrev=0)
70+ tag=${{ github.event.release.tag_name }}
4071 release_name="LighthouseNotes-Web-$tag-${{ matrix.target }}"
4172
4273 # Build everything
5889 with :
5990 files : " LighthouseNotes-Web-*"
6091 env :
61- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
92+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66 <ImplicitUsings >enable</ImplicitUsings >
77 <NoWarn >CS8620</NoWarn >
88 <PublishSingleFile >true</PublishSingleFile >
9- <Version >0.1.6 </Version >
9+ <Version >0.2.1 </Version >
1010 </PropertyGroup >
1111
1212 <ItemGroup >
You can’t perform that action at this time.
0 commit comments