Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
31dda7e
ci: add github actions ci
NanderTGA Nov 5, 2023
6c1e02e
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 5, 2023
4164a31
ci: upload build artifacts
NanderTGA Nov 5, 2023
e8b229f
ci: fix wrong branch name
NanderTGA Nov 5, 2023
d0f61f9
ci: add artifact names
NanderTGA Nov 5, 2023
e248f6e
Merge branch 'GittyMac:master' into master
NanderTGA Nov 5, 2023
cc7dec3
ci: refactor for easier portability
NanderTGA Nov 11, 2023
791e30c
ci: simplify step
NanderTGA Nov 12, 2023
27a589c
ci: automatically add build result to release
NanderTGA Nov 12, 2023
bd13ed1
ci: use windows-2019
NanderTGA Nov 12, 2023
76b7853
fix: twinx and tiki are switched around #11
NanderTGA Nov 18, 2023
4f8602c
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 18, 2023
5d2603b
ci: fix space in artifact name
NanderTGA Nov 18, 2023
00db1da
ci: update update.xml on release
NanderTGA Nov 18, 2023
3bf9627
ci: refactor a bit and actually update & commit
NanderTGA Nov 18, 2023
5f56f8b
ci: put path to FunkeySelector.exe
NanderTGA Nov 18, 2023
c747f1f
ci: attempt to debug
NanderTGA Nov 18, 2023
2546791
ci: try to push changes
NanderTGA Nov 18, 2023
4abc7c6
ci: checkout default branch
NanderTGA Nov 18, 2023
a3fc94c
ci: push to default branch
NanderTGA Nov 18, 2023
42888e6
chore(update): update update.xml
Nov 18, 2023
9f7dc4f
ci: debug null error
NanderTGA Nov 18, 2023
9d6ba4b
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 18, 2023
79b749b
chore(update): update update.xml
Nov 18, 2023
3a44c19
ci: set correct asset name
NanderTGA Nov 18, 2023
046f872
ci: use GITHUB_OUTPUT properly
NanderTGA Nov 18, 2023
dedf3ed
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 18, 2023
fbe0dcf
chore(update): update update.xml
Nov 18, 2023
03fbba2
revert: "chore(update): update update.xml"
NanderTGA Nov 18, 2023
abbadba
ci: set version in AssemblyInfo.cs
NanderTGA Nov 20, 2023
cc4b26b
chore(update): update update.xml
Nov 20, 2023
4a77329
chore(update): update update.xml
Nov 20, 2023
8fb7afc
ci: get tag name properly
NanderTGA Nov 20, 2023
aaad77a
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 20, 2023
179f496
ci: run on every push & PR
NanderTGA Nov 20, 2023
83daed4
ci: use action to get tag name
NanderTGA Nov 20, 2023
d41d0c7
ci: run always on push
NanderTGA Nov 20, 2023
d9d281f
ci: fetch git tags
NanderTGA Nov 20, 2023
265a263
ci: unshallow using git fetch
NanderTGA Nov 20, 2023
39c86e9
ci: try using other action to get tag
NanderTGA Nov 26, 2023
5ec9709
ci: commit changes to AssemblyInfo.cs
NanderTGA Nov 26, 2023
ba2420a
Merge branch 'master' of https://github.com/NanderTGA/FunkeySelectorGUI
NanderTGA Nov 26, 2023
76ec74c
ci: clarify commit message
NanderTGA Nov 26, 2023
51ee4b3
ci: correct description
NanderTGA Nov 26, 2023
4652b68
ci: get version from update.xml
NanderTGA Nov 26, 2023
85632de
ci: don't care about tags
NanderTGA Nov 26, 2023
3a256d6
chore(release): v3.0.7
Nov 26, 2023
e284052
ci: add warning about unintended behavior
NanderTGA Nov 26, 2023
9a59535
revert: changes from test releases
NanderTGA Nov 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Builds a .NET framework project
name: Nightly builds

env:
projectName: FunkeySelectorGUI
projectFolder: FunkeySelector
solutionFile: FunkeySelector.sln

on:
workflow_dispatch:

push:
branches-ignore:
- "gh-pages"

pull_request:
branches-ignore:
- "gh-pages"

jobs:
build:
strategy:
matrix:
configuration: [ Debug, Release ]
runs-on: windows-2019
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet
uses: NuGet/setup-nuget@v1

- name: Restore Packages
run: nuget restore ${{ env.solutionFile }}

- name: Get version from update.xml
id: getVersion
uses: mavrosxristoforos/get-xml-info@1.2.1
with:
xml-file: update.xml
xpath: //update/@version

- name: Normalize the version string into SemVer format (x.x.x)
id: normalizeVersion
run: |
$versionString = "${{ steps.getVersion.outputs.info }}"
$digits = $versionString.Split(".").Length
if ($digits -eq 1) { $versionString += ".0.0" }
elseif ($digits -eq 2) { $versionString += ".0" }
"VERSION=$($versionString)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append

- name: Set version in AssemblyInfo.cs
uses: secondbounce/assemblyinfo-update@v2
with:
version: "${{ steps.normalizeVersion.outputs.VERSION }}"

- name: Build solution
run: msbuild ${{ env.solutionFile }} -t:rebuild -property:Configuration=${{ matrix.configuration }}

- name: Upload the build results as an artifact
uses: actions/upload-artifact@v3
with:
path: ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/*
name: ${{ env.projectName }}.Nightly.${{ matrix.configuration }}
95 changes: 95 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Builds a .NET framework project in Release mode when a new release is created
# and uploads the build results to the newly created release
# then updates update.xml and Properties/AssemblyInfo.cs
name: Publish release

env:
projectName: FunkeySelectorGUI
projectFolder: FunkeySelector
solutionFile: FunkeySelector.sln

on:
release:
types:
- released

jobs:
publish:
permissions:
contents: write
id-token: write
strategy:
matrix: # please please please don't put multiple build configurations in here, it will cause unintended behaviour
configuration: [ Release ]
runs-on: windows-2019
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: "${{ github.event.repository.default_branch }}"

- name: Setup git configuration
run: |
git config user.name "Github Actions Bot"
git config user.email "<>"

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet
uses: NuGet/setup-nuget@v1

- name: Restore Packages
run: nuget restore ${{ env.solutionFile }}

- name: Get version from release name
id: version
uses: mad9000/actions-find-and-replace-string@4
with:
source: "${{ github.event.release.tag_name }}"
find: "v"
replace: ""

- name: Normalize the version string into SemVer format (x.x.x)
id: normalizeVersion
run: |
$versionString = "${{ steps.version.outputs.value }}"
$digits = $versionString.Split(".").Length
if ($digits -eq 1) { $versionString += ".0.0" }
elseif ($digits -eq 2) { $versionString += ".0" }
"VERSION=$($versionString)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append

- name: Set version in AssemblyInfo.cs
uses: secondbounce/assemblyinfo-update@v2
with:
version: "${{ steps.normalizeVersion.outputs.VERSION }}"

- name: Build solution
run: msbuild ${{ env.solutionFile }} -t:rebuild -property:Configuration=${{ matrix.configuration }}

- name: Upload the build results as an artifact
uses: actions/upload-artifact@v3
with:
path: ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/*
name: ${{ env.projectName }}.${{ github.event.release.tag_name }}.${{ matrix.configuration }}

- name: Upload build results to release
uses: svenstaro/upload-release-action@v2
with:
file: ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/FunkeySelector.exe
asset_name: FunkeySelectorGUI.exe

- name: Get file size of FunkeySelectorGUI.exe
id: filesize
run: |
"FILESIZE=$((Get-Item ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/FunkeySelector.exe).length)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append

- name: Update update.xml
run: echo '<update version="${{ steps.version.outputs.value }}" name="${{ github.event.release.name }}" size="${{ steps.filesize.outputs.FILESIZE }}" url="https://github.com/GittyMac/FunkeySelectorGUI/releases/download/${{ github.event.release.tag_name }}/FunkeySelectorGUI.exe" />' > update.xml

- name: Push the changes made to update.xml
run: |
git add update.xml
git add ${{ env.projectFolder }}/Properties/AssemblyInfo.cs
git commit -m "chore(release): ${{ github.event.release.tag_name }}"
git push origin ${{ github.event.repository.default_branch }}
12 changes: 6 additions & 6 deletions FunkeySelector/KelpyBasin.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.