Skip to content

Cleanup of the SettingsWindow code behind to move more of it into eas… #129

Cleanup of the SettingsWindow code behind to move more of it into eas…

Cleanup of the SettingsWindow code behind to move more of it into eas… #129

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish --configuration Release --no-restore -p:PublishProfile=PublishToSingleSelfContainedExe
- name: read JSON property
id: version
uses: notiz-dev/github-action-json-property@release
with:
# path to json file
path: ./GlucoseTray/appsettings.json
# which property to read
prop_path: appsettings.Version
- name: Create Release
uses: ncipollo/release-action@v1.7.1
with:
# An optional flag which indicates if we should update a release if it already exists. Defaults to false.
allowUpdates: true
# An optional set of paths representing artifacts to upload to the release. This may be a single path or a comma delimited list of paths (or globs)
#artifact:
# An optional set of paths representing artifacts to upload to the release. This may be a single path or a comma delimited list of paths (or globs)
#artifacts: './GlucoseTray/bin/Release/net5.0-windows/win-x64/publish/'
artifacts: './GlucoseTray/bin/Release/net8.0-windows/win-x64/publish/GlucoseTray.exe'
# The content type of the artifact. Defaults to raw
#artifactContentType: # optional, default is
# An optional body for the release.
#body: # optional, default is
# An optional body file for the release. This should be the path to the file
#bodyFile: # optional, default is
# An optional commit reference. This will be used to create the tag if it does not exist.
#commit: # optional, default is
# Optionally marks this release as a draft release. Set to true to enable.
draft: false
# An optional name for the release. If this is omitted the tag will be used.
name: 'Glucose Tray ${{steps.version.outputs.prop}}'
# Indicates if the release body should be omitted.
#omitBody: # optional, default is false
# Indicates if the release body should be omitted during updates. The body will still be applied for newly created releases. This will preserve the existing body during updates.
#omitBodyDuringUpdate: # optional, default is false
# Indicates if the release name should be omitted.
#omitName: # optional, default is false
# Indicates if the release name should be omitted during updates. The name will still be applied for newly created releases. This will preserve the existing name during updates.
#omitNameDuringUpdate: # optional, default is false
# Optionally marks this release as prerelease. Set to true to enable.
prerelease: false
# Indicates if existing release artifacts should be replaced. Defaults to true.
replacesArtifacts: true
# An optional tag for the release. If this is omitted the git ref will be used (if it is a tag).
tag: ${{steps.version.outputs.prop}}
# The Github token.
token: ${{ secrets.GITHUB_TOKEN }}