Skip to content

Commit

Permalink
Updated translations, CI and version
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Sep 2, 2024
1 parent 88f89f3 commit 4412521
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 214 deletions.
1 change: 0 additions & 1 deletion .github/VERSION.txt

This file was deleted.

28 changes: 7 additions & 21 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,11 @@ name: Build and Release

on:
push:
branches:
- main
paths:
- ".github/VERSION.txt"
tags:
- 'v*'

jobs:
check-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Get version
id: get_version
run: echo "version=$(cat .github/VERSION.txt)" >> $GITHUB_OUTPUT

build-windows:
needs: check-version
runs-on: windows-latest

steps:
Expand Down Expand Up @@ -89,7 +76,6 @@ jobs:
path: HeadsetControl-GUI_windows_64.zip

build-linux:
needs: check-version
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -125,7 +111,7 @@ jobs:
path: build/HeadsetControl-GUI_linux_64.zip

create-release:
needs: [check-version, build-linux, build-windows]
needs: [build-linux, build-windows]
runs-on: ubuntu-latest

steps:
Expand All @@ -145,8 +131,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.check-version.outputs.version }}
release_name: Release v${{ needs.check-version.outputs.version }}
tag_name: ${{ github.ref }}
release_name: Release v${{ github.ref }}
draft: false
prerelease: false

Expand All @@ -157,7 +143,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./HeadsetControl-GUI_linux_64.zip
asset_name: HeadsetControl-GUI_linux_64_${{ needs.check-version.outputs.version }}.zip
asset_name: HeadsetControl-GUI_linux_64.zip
asset_content_type: application/octet-stream

- name: Upload Windows Release Asset
Expand All @@ -167,5 +153,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./HeadsetControl-GUI_windows_64.zip
asset_name: HeadsetControl-GUI_windows_64_${{ needs.check-version.outputs.version }}.zip
asset_name: HeadsetControl-GUI_windows_64.zip
asset_content_type: application/octet-stream
3 changes: 1 addition & 2 deletions HeadsetControl-GUI.pro
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ RESOURCES += \
RC_FILE = src/Resources/appicon.rc

DISTFILES += \
.gitignore \
.github/VERSION.txt
.gitignore

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
Expand Down
Binary file modified src/Resources/tr/HeadsetControl_GUI_en_US.qm
Binary file not shown.
Loading

0 comments on commit 4412521

Please sign in to comment.