Skip to content

Commit 2ef28b5

Browse files
committed
update nuget icons
1 parent 697196c commit 2ef28b5

5 files changed

Lines changed: 83 additions & 28 deletions

File tree

.claude/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci-main.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,3 @@ jobs:
6767
6868
- name: Push to NuGet Feed
6969
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --api-key $NUGET_KEY --skip-duplicate
70-
71-
- name: Publish Sample Site
72-
run: dotnet publish -c Release samples/BlazorWebAssembly/BlazorWebAssembly.csproj
73-
74-
- name: Rewrite base href
75-
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
76-
with:
77-
html_path: samples/BlazorWebAssembly/bin/Release/${{ env.OUTPUT_DIR }}/publish/wwwroot/index.html
78-
base_href: /${{ env.PROJECT_NAME }}/
79-
80-
- name: Deploy to Github Pages
81-
uses: JamesIves/github-pages-deploy-action@v4
82-
with:
83-
token: ${{ secrets.GITHUB_TOKEN }}
84-
branch: gh-pages
85-
folder: samples/BlazorWebAssembly/bin/Release/${{ env.OUTPUT_DIR }}/publish/wwwroot
86-
single-commit: true

.github/workflows/static.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy Sample Site
2+
3+
env:
4+
PUBLISH_DIR: samples/BlazorWebAssembly/bin/Release/net10.0/publish/wwwroot
5+
6+
on:
7+
push:
8+
paths:
9+
- samples/**
10+
- src/**
11+
- ".github/workflows/static.yml"
12+
branches:
13+
- main
14+
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
26+
jobs:
27+
test:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Setup .NET SDK
34+
uses: actions/setup-dotnet@v4
35+
with:
36+
dotnet-version: "10.0"
37+
38+
- name: Install .NET WASM workload
39+
run: dotnet workload install wasm-tools
40+
41+
- name: Run Tests
42+
run: dotnet test tests/Mythetech.LocalStorage.Tests
43+
44+
deploy:
45+
needs: test
46+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Setup .NET SDK
56+
uses: actions/setup-dotnet@v4
57+
with:
58+
dotnet-version: "10.0"
59+
60+
- name: Install .NET WASM workload
61+
run: dotnet workload install wasm-tools
62+
63+
- name: Publish Sample Site
64+
run: dotnet publish -c Release samples/BlazorWebAssembly/BlazorWebAssembly.csproj
65+
66+
- name: Rewrite base href
67+
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
68+
with:
69+
html_path: ${{ env.PUBLISH_DIR }}/index.html
70+
base_href: /LocalStorage/
71+
72+
- name: Setup Pages
73+
uses: actions/configure-pages@v5
74+
75+
- name: Upload artifact
76+
uses: actions/upload-pages-artifact@v3
77+
with:
78+
path: ${{ env.PUBLISH_DIR }}
79+
80+
- name: Deploy to GitHub Pages
81+
id: deployment
82+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,4 @@ ASALocalRun/
328328
*.nvuser
329329

330330
# MFractors (Xamarin productivity tool) working folder
331-
.mfractor/
331+
.mfractor/
17.6 KB
Loading

0 commit comments

Comments
 (0)