@@ -139,10 +139,12 @@ jobs:
139
139
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
140
140
BUILD_SUFFIX=dev-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
141
141
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/[ \t\)]+/, "", $2); print $2 }')
142
- echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
143
- echo "BUILD_NAME=inav-${VERSION}-${BUILD_SUFFIX}" >> $GITHUB_ENV
142
+ #echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
143
+ #echo "BUILD_NAME=inav-${VERSION}-${BUILD_SUFFIX}" >> $GITHUB_ENV
144
+ #echo "VERSION_TAG=-$(date '+%Y%m%d')" >> $GITHUB_ENV
145
+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
144
146
- name : Build SITL
145
- run : mkdir -p build_SITL && cd build_SITL && cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -G Ninja .. && ninja
147
+ run : mkdir -p build_SITL && cd build_SITL && cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -DVERSION_TYPE="dev" - G Ninja .. && ninja
146
148
- name : Upload artifacts
147
149
uses : actions/upload-artifact@v4
148
150
with :
@@ -163,6 +165,12 @@ jobs:
163
165
needs : [build, build-SITL-Linux, build-SITL-Mac, build-SITL-Windows, test]
164
166
runs-on : ubuntu-latest
165
167
steps :
168
+ - uses : actions/checkout@v4
169
+ - name : Get version
170
+ id : version
171
+ run : |
172
+ VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/[ \t\)]+/, "", $2); print $2 }')
173
+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
166
174
- name : Get current date
167
175
id : date
168
176
run : echo "today=$(date '+%Y%m%d')" >> $GITHUB_OUTPUT
@@ -196,7 +204,7 @@ jobs:
196
204
- name : Upload release artifacts
197
205
uses : softprops/action-gh-release@v2
198
206
with :
199
- name : inav-dev-release- ${{ steps.date.outputs.today }}-${{ github.run_number }}-${{ github.sha}}
207
+ name : inav-${{ steps.version.outputs.version }}- dev-${{ steps.date.outputs.today }}-${{ github.run_number }}-${{ github.sha }}
200
208
tag_name : v${{ steps.date.outputs.today }}.${{ github.run_number }}
201
209
# To create release on a different repo, we need a token setup
202
210
# token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments