Skip to content

Commit 5599e87

Browse files
committed
GitHub Actions: use tag as version in artifact
Instead of the Qt Creator version.
1 parent f529d51 commit 5599e87

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build_cmake.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ jobs:
244244
COMMAND python
245245
-u
246246
"${{ steps.qt_creator.outputs.qtc_dir }}/${build_plugin_py}"
247-
--name "$ENV{PLUGIN_NAME}-$ENV{QT_CREATOR_VERSION}-${{ matrix.config.artifact }}"
247+
--name "$ENV{PLUGIN_NAME}-${{ steps.git.outputs.tag }}-${{ matrix.config.artifact }}"
248248
--src .
249249
--build build
250250
--qt-path "${{ steps.qt.outputs.qt_dir }}"
@@ -263,8 +263,8 @@ jobs:
263263
- name: Upload
264264
uses: actions/upload-artifact@v4
265265
with:
266-
path: ./${{ env.PLUGIN_NAME }}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z
267-
name: ${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z
266+
path: ./${{ env.PLUGIN_NAME }}-${{ steps.git.outputs.tag }}-${{ matrix.config.artifact }}.7z
267+
name: ${{ env.PLUGIN_NAME}}-${{ steps.git.outputs.tag }}-${{ matrix.config.artifact }}.7z
268268

269269
# The json is the same for all platforms, but we need to save one
270270
- name: Upload plugin json
@@ -298,10 +298,10 @@ jobs:
298298
with:
299299
tag_name: v${{ needs.build.outputs.tag }}
300300
files: |
301-
release/${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-Linux-arm64.7z
302-
release/${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-Linux-x64.7z
303-
release/${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-macOS-universal.7z
304-
release/${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-Windows-arm64.7z
305-
release/${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-Windows-x64.7z
301+
release/${{ env.PLUGIN_NAME}}-${{ needs.build.outputs.tag }}-Linux-arm64.7z
302+
release/${{ env.PLUGIN_NAME}}-${{ needs.build.outputs.tag }}-Linux-x64.7z
303+
release/${{ env.PLUGIN_NAME}}-${{ needs.build.outputs.tag }}-macOS-universal.7z
304+
release/${{ env.PLUGIN_NAME}}-${{ needs.build.outputs.tag }}-Windows-arm64.7z
305+
release/${{ env.PLUGIN_NAME}}-${{ needs.build.outputs.tag }}-Windows-x64.7z
306306
draft: false
307307
prerelease: false

0 commit comments

Comments
 (0)