Skip to content

Commit

Permalink
The build and release workflow sets the current version now
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrit-amagno committed Aug 27, 2024
1 parent 8b4f0bd commit 2ac56e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set version
shell: powershell
run: powershell -file .\$GITHUB_WORKSPACE\Set-Version.ps1
- name: Add MSBuild to the PATH
uses: microsoft/setup-msbuild@v1
- name: Restore the application
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ To debug the _AmagnoVirtualPrinter_, run the msi. After installation, go to _Win
## Create Release
To create a release, you have to tag a commit. Then the release pipeline compiles the source code, builds the installation, and creates the release on GitHub.

Use change-version.ps1 to update the assembly and file version of all files and the setup.
Use Set-Version.ps1 and versioninfo.txt to update the assembly and file version of all files and the setup.
3 changes: 1 addition & 2 deletions Set-Version.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Define the new version numbers
$newVersion = Get-Content "Set-Version.txt"
$newVersion = Get-Content "versioninfo.txt"

# Use the current directory as the root directory
$rootDirectory = Get-Location
Expand Down
File renamed without changes.

0 comments on commit 2ac56e6

Please sign in to comment.