Skip to content

Commit ada676a

Browse files
Merge branch 'develop'
2 parents 7e9a15b + f45060e commit ada676a

File tree

30 files changed

+1048
-29
lines changed

30 files changed

+1048
-29
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- develop
1616

1717
env:
18-
DOTNET_VERSION: '8.0.x'
18+
DOTNET_VERSION: '9.0.x'
1919

2020
jobs:
2121
format:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
BRANCH_NAME: ${{ github.event.release.target_commitish }}
1010
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}
11-
DOTNET_VERSION: '8.0.x'
11+
DOTNET_VERSION: '9.0.x'
1212
NUGET_SOURCE: 'https://api.nuget.org/v3/index.json'
1313
BUILD_CONFIGURATION: ''
1414
VERSION_SUFFIX: ''

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
env:
1818
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1919
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}
20-
DOTNET_VERSION: '8.0.x'
20+
DOTNET_VERSION: '9.0.x'
2121

2222
jobs:
2323
test:

.github/workflows/unlist-nuget.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Unlist NuGet
2+
3+
on:
4+
workflow_dispatch:
5+
# release:
6+
# types: [deleted]
7+
8+
env:
9+
BRANCH_NAME: ${{ github.event.release.target_commitish }}
10+
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
11+
12+
jobs:
13+
publish:
14+
name: unlist on nuget
15+
runs-on: windows-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
# Unlist
21+
- name: Unlist Deleted Tag
22+
uses: darenm/unlist-nuget@v1
23+
with:
24+
NUGET_PACKAGE: ${{ env.PROJECT_NAME }} # Full Package ID
25+
VERSION_REGEX: ${{ github.event.release.tag_name }} # Regex pattern to match version
26+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Update Version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_type:
7+
description: 'Update branch version by:'
8+
type: choice
9+
options:
10+
- major
11+
- minor
12+
- patch
13+
required: true
14+
default: 'patch'
15+
16+
env:
17+
ALLOW_UPDATES: ${{ startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix/') }}
18+
19+
jobs:
20+
update-version:
21+
runs-on: ubuntu-latest
22+
outputs:
23+
version_tag: ${{ env.version_tag }}
24+
previous_version_tag: ${{ env.previous_version_tag }}
25+
26+
steps:
27+
- name: Check For Valid Updates
28+
if: env.ALLOW_UPDATES == false
29+
run: |
30+
echo "Version updates should only be done on development or hotfix"
31+
exit 1
32+
33+
- name: Checkout Code
34+
uses: actions/checkout@v4
35+
36+
- name: Run Update Version
37+
id: set_version
38+
shell: pwsh
39+
run: |
40+
Import-Module ./solution-helper.psm1 -Force
41+
$previousVersion, $newVersion = Update-Version -type ${{ github.event.inputs.version_type }}
42+
echo "version_tag=$newVersion" | Out-File -FilePath $env:GITHUB_ENV -Append
43+
echo "previous_version_tag=$previousVersion" | Out-File -FilePath $env:GITHUB_ENV -Append
44+
45+
- name: Check for Existing Release
46+
run: |
47+
compare_versions() {
48+
echo -e "$1\n$2" | sort -V | tail -n 1
49+
}
50+
51+
# Fetch the list of releases
52+
releases=$(gh release list --json createdAt,tagName --limit 100)
53+
echo -e "$releases"
54+
55+
# Sort the releases by date and extract the most recent one
56+
latest_release=$(echo "$releases" | jq -r 'sort_by(.createdAt) | reverse | .[0] | .tagName')
57+
echo -e "$latest_release"
58+
59+
greater_version=$(compare_versions $latest_release $version_tag)
60+
61+
if [ "$greater_version" = "$version_tag" ]; then
62+
echo "✅ $version_tag is greater than $latest_release"
63+
elif [ "$greater_version" = "$latest_release" ]; then
64+
echo "⛔ $version_tag is less than $latest_release"
65+
exit 1
66+
else
67+
echo "⚠️ Versions are equal"
68+
exit 1
69+
fi
70+
env:
71+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
73+
- name: Update Version Number
74+
run: |
75+
git config --global user.name '${{ github.triggering_actor }}'
76+
git config --global user.email '${{ github.triggering_actor }}@users.noreply.github.com'
77+
git commit -am "Previous version was '${{ env.previous_version_tag }}'. Version now '${{ env.version_tag }}'."
78+
git push

Hyperbee.Migrations.sln

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
5454
.github\workflows\publish.yml = .github\workflows\publish.yml
5555
.github\workflows\test-report.yml = .github\workflows\test-report.yml
5656
.github\workflows\test.yml = .github\workflows\test.yml
57+
unlist-nuget.yml = unlist-nuget.yml
58+
update-version.yml = update-version.yml
5759
EndProjectSection
5860
EndProject
59-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{FAE7F244-124F-4BCB-8EA6-049BEE4991B9}"
60-
ProjectSection(SolutionItems) = preProject
61-
todo.md = todo.md
62-
EndProjectSection
61+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "docs", "docs\docs.shproj", "{5A1580F9-6806-401E-9CAB-AC876DB070FD}"
6362
EndProject
6463
Global
6564
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -130,9 +129,12 @@ Global
130129
{C4B50B74-3FCA-453E-AF19-D9EA9233F8FC} = {17F0B438-3EBD-4566-9A22-7A5EC4AEAF3D}
131130
{004E4E55-FA1C-49D0-865F-4FF238C7A1F3} = {5A09B7FE-D694-45B5-BCBC-256A8E06CFC5}
132131
{A192B3D2-E452-4A85-BBA4-1A8499F1A056} = {004E4E55-FA1C-49D0-865F-4FF238C7A1F3}
133-
{FAE7F244-124F-4BCB-8EA6-049BEE4991B9} = {5A09B7FE-D694-45B5-BCBC-256A8E06CFC5}
132+
{5A1580F9-6806-401E-9CAB-AC876DB070FD} = {5A09B7FE-D694-45B5-BCBC-256A8E06CFC5}
134133
EndGlobalSection
135134
GlobalSection(ExtensibilityGlobals) = postSolution
136135
SolutionGuid = {97071D77-035B-4126-AD4E-DE150E318714}
137136
EndGlobalSection
137+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
138+
docs\docs.projitems*{5a1580f9-6806-401e-9cab-ac876db070fd}*SharedItemsImports = 13
139+
EndGlobalSection
138140
EndGlobal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public class PeopleHaveFullNames : Migration // #2 inherit from Migration
5555

5656
# Build Requirements
5757

58-
* To build and run this project, **.NET 8 SDK** is required.
59-
* Ensure your development tools are compatible with .NET 8.
58+
* To build and run this project, **.NET 9 SDK** is required.
59+
* Ensure your development tools are compatible with .NET 9.
6060

6161
## Building the Solution
6262

63-
* With .NET 8 SDK installed, you can build the solution using the standard `dotnet build` command.
63+
* With .NET 9 SDK installed, you can build the solution using the standard `dotnet build` command.
6464

6565

6666
# Status
File renamed without changes.

docs/_config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: Hyperbee Migrations
2+
description: Documentation for Hyperbee Migrations.
3+
remote_theme: pmarsceill/just-the-docs
4+
baseurl: "/hyperbee.migrations/"
5+
url: "https://stillpoint-software.github.io"
6+
7+
aux_links:
8+
"GitHub Repository":
9+
- "//github.com/Stillpoint-Software/hyperbee.migrations"
10+
11+
footer_content: |
12+
<div>
13+
<span>&copy; <span id="copyright-year"></span> <a href='https://www.stillpointsoftware.net/'>Stillpoint Software</a>.</span>
14+
<script>
15+
document.getElementById("copyright-year").textContent = new Date().getFullYear();
16+
</script>
17+
</div>
18+
19+
# logo: "/assets/icon.png"
20+
search_enabled: true # Enable search
21+
22+
# External navigation links
23+
nav_external_links:
24+
- title: Stillpoint Software
25+
url: https://www.stillpointsoftware.net/
26+
opens_in_new_tab: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<footer class="site-footer">
2+
Hyperbee Migration Docs
3+
</footer>

0 commit comments

Comments
 (0)