diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abc3645..8d3ad84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,27 +21,36 @@ jobs: - name: Build run: dotnet build --configuration Release + - name: Check version consistency of git tag and CHANGELOG.md + # needs in fsproj: + # + # + # + id: check_version + run: | + CHANGELOG_VERSION=$(cat bin/ChangelogVersion.txt | tr -d '[:space:]') + if [ "${{ github.ref_name }}" != "$CHANGELOG_VERSION" ]; then + echo "Version mismatch: git tag (${{ github.ref_name }}) and version in CHANGELOG.md ($CHANGELOG_VERSION) are not the same." + exit 1 + fi # https://discourse.mcneel.com/t/github-action-to-yak/120815/3 - name: Download Yak env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - run: curl -o yak.exe http://files.mcneel.com/yak/tools/latest/yak.exe + run: curl -o bin\yak.exe http://files.mcneel.com/yak/tools/latest/yak.exe - name: Build Yak env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - run: ..\..\yak.exe build --platform win --version ${{ github.ref_name }} + run: ..\yak.exe build --platform win --version ${{ github.ref_name }} # I prepopulated a manifest file and copied it next to the .gha working-directory: bin/Release - name: Push new version to YAK - run: | - $YAK_FILE=$(ls *.yak) - echo $YAK_FILE - ..\..\yak.exe push $YAK_FILE + run: ..\yak.exe push *.yak working-directory: bin/Release # You should create a secret using the token from here: yak.exe login --ci env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 234d63f..b231e53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.16.2] - 2024-12-15 +### Added +- Yak build version check + ## [0.16.1] - 2024-12-14 ### Changed - Updated to Fesh 0.16.0 diff --git a/Fesh.Rhino.fsproj b/Fesh.Rhino.fsproj index 150fee3..6d59abf 100644 --- a/Fesh.Rhino.fsproj +++ b/Fesh.Rhino.fsproj @@ -75,7 +75,12 @@ + + + + + diff --git a/Src/yak.yml b/Src/yak.yml index 2ab179b..6fa6aef 100644 --- a/Src/yak.yml +++ b/Src/yak.yml @@ -1,5 +1,5 @@ name: Fesh -version: 0.16.0 +version: 0.0.0 url: "https://github.com/goswinr/Fesh.Rhino" icon: logo.png authors: