Skip to content

Commit 22af6b0

Browse files
Update project based on cookiecutter repo
1 parent 1aee8f2 commit 22af6b0

File tree

6 files changed

+38
-32
lines changed

6 files changed

+38
-32
lines changed

.github/workflows/publish.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Publish
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [published]
67

78
env:
89
BRANCH_NAME: ${{ github.event.release.target_commitish }}
910
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}
10-
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
1111
DOTNET_VERSION: '8.0.x'
1212
NUGET_SOURCE: 'https://api.nuget.org/v3/index.json'
1313
BUILD_CONFIGURATION: ''
@@ -19,13 +19,13 @@ jobs:
1919

2020
steps:
2121
- name: Release Configuration
22-
if: ${{ env.BRANCH_NAME == 'main' && github.event.release.prerelease == false }}
22+
if: ${{ env.BRANCH_NAME == 'main' && (github.event.release.prerelease == false || github.event_name == 'workflow_dispatch') }}
2323
run: |
2424
echo "BUILD_CONFIGURATION=Release" >> $GITHUB_ENV
2525
echo "VERSION_SUFFIX=" >> $GITHUB_ENV
2626
2727
- name: Debug Configuration
28-
if: ${{ github.event.release.prerelease }}
28+
if: ${{ (github.event.release.prerelease || github.event_name == 'workflow_dispatch') }}
2929
run: |
3030
echo "BUILD_CONFIGURATION=Debug" >> $GITHUB_ENV
3131
echo "VERSION_SUFFIX=develop.$(date +'%y%m%d%H%M%S')" >> $GITHUB_ENV
@@ -53,8 +53,5 @@ jobs:
5353
- name: Test
5454
run: dotnet test --no-build --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_NAME }}
5555

56-
- name: Publish
57-
run: dotnet publish --no-build --configuration ${{ env.BUILD_CONFIGURATION }} -o ./publish ./src/${{ env.PROJECT_NAME }}/${{ env.PROJECT_NAME }}.csproj
58-
5956
- name: Pack and Push
6057
run: dotnet pack --no-build --configuration ${{ env.BUILD_CONFIGURATION }} -p:PackageOutputPath=../../output --version-suffix "${{ env.VERSION_SUFFIX }}" -p:PackageSource='${{ env.NUGET_SOURCE }}' -p:PushAfterPack=true -p:PackageApiKey='${{ secrets.NUGET_API_KEY }}'

.github/workflows/unlist-nuget.yml

-26
This file was deleted.

assets/hyperbee.jpg

-96.9 KB
Binary file not shown.

assets/hyperbee.svg

+29
Loading

assets/icon.png

-353 KB
Loading

src/Hyperbee.Resources/ResourceHelper.cs

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public static string GetResourceName( IResourceLocator locator, string name )
4949
return $"{locator.Namespace}.{sanitizedName}";
5050
}
5151

52+
53+
public static string[] GetResourceNames( IResourceLocator locator )
54+
{
55+
return locator.GetType().Assembly.GetManifestResourceNames();
56+
}
57+
5258
private static readonly char[] InvalidChars =
5359
[
5460
' ',

0 commit comments

Comments
 (0)