-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,048 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ on: | |
- develop | ||
|
||
env: | ||
DOTNET_VERSION: '8.0.x' | ||
DOTNET_VERSION: '9.0.x' | ||
|
||
jobs: | ||
format: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Unlist NuGet | ||
|
||
on: | ||
workflow_dispatch: | ||
# release: | ||
# types: [deleted] | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.event.release.target_commitish }} | ||
PROJECT_NAME: ${{ vars.PROJECT_NAME }} | ||
|
||
jobs: | ||
publish: | ||
name: unlist on nuget | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Unlist | ||
- name: Unlist Deleted Tag | ||
uses: darenm/unlist-nuget@v1 | ||
with: | ||
NUGET_PACKAGE: ${{ env.PROJECT_NAME }} # Full Package ID | ||
VERSION_REGEX: ${{ github.event.release.tag_name }} # Regex pattern to match version | ||
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Update Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
description: 'Update branch version by:' | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
required: true | ||
default: 'patch' | ||
|
||
env: | ||
ALLOW_UPDATES: ${{ startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix/') }} | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version_tag: ${{ env.version_tag }} | ||
previous_version_tag: ${{ env.previous_version_tag }} | ||
|
||
steps: | ||
- name: Check For Valid Updates | ||
if: env.ALLOW_UPDATES == false | ||
run: | | ||
echo "Version updates should only be done on development or hotfix" | ||
exit 1 | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Update Version | ||
id: set_version | ||
shell: pwsh | ||
run: | | ||
Import-Module ./solution-helper.psm1 -Force | ||
$previousVersion, $newVersion = Update-Version -type ${{ github.event.inputs.version_type }} | ||
echo "version_tag=$newVersion" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
echo "previous_version_tag=$previousVersion" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
- name: Check for Existing Release | ||
run: | | ||
compare_versions() { | ||
echo -e "$1\n$2" | sort -V | tail -n 1 | ||
} | ||
# Fetch the list of releases | ||
releases=$(gh release list --json createdAt,tagName --limit 100) | ||
echo -e "$releases" | ||
# Sort the releases by date and extract the most recent one | ||
latest_release=$(echo "$releases" | jq -r 'sort_by(.createdAt) | reverse | .[0] | .tagName') | ||
echo -e "$latest_release" | ||
greater_version=$(compare_versions $latest_release $version_tag) | ||
if [ "$greater_version" = "$version_tag" ]; then | ||
echo "✅ $version_tag is greater than $latest_release" | ||
elif [ "$greater_version" = "$latest_release" ]; then | ||
echo "⛔ $version_tag is less than $latest_release" | ||
exit 1 | ||
else | ||
echo "⚠️ Versions are equal" | ||
exit 1 | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update Version Number | ||
run: | | ||
git config --global user.name '${{ github.triggering_actor }}' | ||
git config --global user.email '${{ github.triggering_actor }}@users.noreply.github.com' | ||
git commit -am "Previous version was '${{ env.previous_version_tag }}'. Version now '${{ env.version_tag }}'." | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
title: Hyperbee Migrations | ||
description: Documentation for Hyperbee Migrations. | ||
remote_theme: pmarsceill/just-the-docs | ||
baseurl: "/hyperbee.migrations/" | ||
url: "https://stillpoint-software.github.io" | ||
|
||
aux_links: | ||
"GitHub Repository": | ||
- "//github.com/Stillpoint-Software/hyperbee.migrations" | ||
|
||
footer_content: | | ||
<div> | ||
<span>© <span id="copyright-year"></span> <a href='https://www.stillpointsoftware.net/'>Stillpoint Software</a>.</span> | ||
<script> | ||
document.getElementById("copyright-year").textContent = new Date().getFullYear(); | ||
</script> | ||
</div> | ||
# logo: "/assets/icon.png" | ||
search_enabled: true # Enable search | ||
|
||
# External navigation links | ||
nav_external_links: | ||
- title: Stillpoint Software | ||
url: https://www.stillpointsoftware.net/ | ||
opens_in_new_tab: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<footer class="site-footer"> | ||
Hyperbee Migration Docs | ||
</footer> |
Oops, something went wrong.