-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update .NET version and enhance CI workflows
Updated the .NET version in `build_app.yml` to '9.0.x' and modified artifact names to include "Velopack". Ensured upload steps are conditional on event type. Added a new job in `releases.yml` for manual deployment to GitHub Releases, which includes steps for version retrieval, .NET installation, application publishing, and Velopack release creation. Also, added a `<Version>` tag with '1.0.0' in `SketchNow.csproj` to specify the application version.
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 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
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,33 @@ | ||
name: Deploy to GitHub Releases | ||
|
||
on: workflow_dispatch | ||
jobs: | ||
deploy-to-github-releases: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Get Version from Project File | ||
id: get-version | ||
shell: bash | ||
run: echo "version=$(grep -oE '<Version>[^<]+' SketchNow/SketchNow.csproj | sed 's/<Version>//')" >> $GITHUB_OUTPUT | ||
- name: Install .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.0.x | ||
- name: Publish Application | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: dotnet publish --configuration Release -p:PublishDir=${{ github.workspace }}/.build/publish -r win-x64 --self-contained true | ||
- name: Create Velopack Release | ||
run: | | ||
dotnet tool install -g vpk | ||
vpk download github --repoUrl https://github.com/SketchNow/SketchNow.WPF | ||
vpk pack -u SketchNow -v ${{ steps.get-version.outputs.version }} -p ${{ github.workspace }}/.build/publish | ||
vpk upload github --repoUrl https://github.com/SketchNow/SketchNow.WPF --publish --releaseName "SketchNow ${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }} | ||
- name: Generate Release Notes | ||
uses: yashanand1910/[email protected] | ||
id: get_release_notes | ||
with: | ||
changelog_path: ./CHANGELOG.md | ||
version: ${{ steps.get-version.outputs.version }} | ||
body: ${{ steps.get_release_notes.outputs.release_notes }} |
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