Skip to content

Commit e6319e3

Browse files
committed
Release MiniAuth 0.10.2
1 parent 4691dee commit e6319e3

3 files changed

Lines changed: 110 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
publish_nuget:
9+
description: Publish packages to NuGet.org
10+
required: true
11+
default: 'false'
12+
type: choice
13+
options:
14+
- 'false'
15+
- 'true'
16+
17+
permissions:
18+
contents: write
19+
id-token: write
20+
21+
jobs:
22+
pack:
23+
name: Pack and publish
24+
runs-on: ubuntu-latest
25+
env:
26+
CONFIGURATION: Release
27+
PACKAGE_PROJECT: src/MiniAuth.IdentityAuth/MiniAuth.IdentityAuth.csproj
28+
PACKAGE_OUTPUT: artifacts/nuget
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Setup .NET
34+
uses: actions/setup-dotnet@v4
35+
with:
36+
dotnet-version: |
37+
6.0.x
38+
7.0.x
39+
8.0.x
40+
41+
- name: Restore
42+
run: dotnet restore Build.csproj
43+
44+
- name: Build
45+
run: dotnet build Build.csproj -c $CONFIGURATION --no-restore /p:CI=true
46+
47+
- name: Validate release tag
48+
if: github.event_name == 'release'
49+
shell: bash
50+
run: |
51+
package_version=$(dotnet msbuild "$PACKAGE_PROJECT" -getProperty:Version)
52+
release_tag="${GITHUB_REF_NAME#v}"
53+
if [ "$package_version" != "$release_tag" ]; then
54+
echo "Release tag $GITHUB_REF_NAME does not match package version $package_version."
55+
exit 1
56+
fi
57+
58+
- name: Test
59+
run: dotnet test Build.csproj -c $CONFIGURATION --no-build --logger trx --results-directory ./test-results/ /p:CI=true
60+
env:
61+
EnableTestLogging: true
62+
63+
- name: Pack
64+
run: dotnet pack $PACKAGE_PROJECT -c $CONFIGURATION --no-build -o $PACKAGE_OUTPUT /p:CI=true
65+
66+
- name: Upload workflow artifact
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: nuget-packages
70+
path: |
71+
${{ env.PACKAGE_OUTPUT }}/*.nupkg
72+
${{ env.PACKAGE_OUTPUT }}/*.snupkg
73+
74+
- name: Upload packages to GitHub Release
75+
if: github.event_name == 'release'
76+
uses: softprops/action-gh-release@v2
77+
with:
78+
files: |
79+
${{ env.PACKAGE_OUTPUT }}/*.nupkg
80+
${{ env.PACKAGE_OUTPUT }}/*.snupkg
81+
82+
- name: NuGet login
83+
if: github.event_name == 'release' || github.event.inputs.publish_nuget == 'true'
84+
uses: NuGet/login@v1
85+
id: nuget-login
86+
with:
87+
user: ITWeiHan
88+
89+
- name: Publish package to NuGet.org
90+
if: github.event_name == 'release' || github.event.inputs.publish_nuget == 'true'
91+
shell: bash
92+
run: |
93+
for package in "$PACKAGE_OUTPUT"/*.nupkg; do
94+
dotnet nuget push "$package" --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
95+
done
96+
97+
- name: Publish symbols to NuGet.org
98+
if: github.event_name == 'release' || github.event.inputs.publish_nuget == 'true'
99+
shell: bash
100+
run: |
101+
for package in "$PACKAGE_OUTPUT"/*.snupkg; do
102+
dotnet nuget push "$package" --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
103+
done

‎releases/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020
---
2121

22+
### 0.10.2
23+
- Replace the embedded admin dashboard with pure HTML, CSS, and JavaScript.
24+
- Remove the Vue/Vite frontend build path from the package release flow.
25+
- Standardize the default management route prefix to `/miniauth`.
26+
- Fix embedded static file routing and new-user save handling.
27+
2228
### 0.9.2
2329
- Fix Asp.net core empty startup error #187
2430

‎src/MiniAuth.IdentityAuth/MiniAuth.IdentityAuth.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<AssemblyName>MiniAuth</AssemblyName>
44
<Title>MiniAuth</Title>
5-
<Version>0.10.1</Version>
5+
<Version>0.10.2</Version>
66
<Description>"One-line code" adds identity management web for your new/old projects</Description>
77
<Authors>Wei Lin, mini-software</Authors>
88
<PackageTags>MiniAuth</PackageTags>

0 commit comments

Comments
 (0)