Skip to content

Commit

Permalink
ci: fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Oct 23, 2024
1 parent e129091 commit 78f8095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .cmake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()

# Git describe
# @note Exclude 'tweak' tags in the form v0.1.2-30 i.e. with the '-30' to avoid a second suffix being appended e.g v0.1.2-30-12
set(GIT_VERSION_COMMAND "${GIT_EXECUTABLE}" -C "${VERSION_SOURCE_DIR}" --no-pager describe --tags --exclude "v[0-9]*[._][0-9]*[._][0-9]*-[0-9]*|nightly.*" --always --dirty --long)
set(GIT_VERSION_COMMAND "${GIT_EXECUTABLE}" -C "${VERSION_SOURCE_DIR}" --no-pager describe --tags --exclude "v[0-9]*[._][0-9]*[._][0-9]*-[0-9]*" --exclude "nightly*" --always --dirty --long)

# Git count
# @note We only count commits on the current branch and not comits in merge branches via '--first-parent'. The count is never unique but the Sha will be!
Expand Down Expand Up @@ -235,4 +235,4 @@ if ( NOT _VERSION_NOT_GIT_REPO )
endif()
else()
message(CHECK_FAIL "Failed, Error reading Git repository")
endif()
endif()
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,11 @@ jobs:
- name: Release (GitHub)
uses: ncipollo/release-action@v1
if: github.event_name == 'push' && github.ref_type == 'tag'
if: github.ref_type == 'tag'
with:
artifacts: ./artifacts/*
allowUpdates: true
draft: false
omitBody: true
prerelease: ${{ github.ref == 'refs/tags/nightly' }}
removeArtifacts: ${{ github.ref == 'refs/tags/nightly' }}

0 comments on commit 78f8095

Please sign in to comment.