From 631d4c7fd01d22fb482e1dcb034f8da4b8a9e186 Mon Sep 17 00:00:00 2001 From: MrMirDan Date: Mon, 20 Apr 2026 11:39:07 +0300 Subject: [PATCH] update: added envs --- .github/workflows/deploy.yml | 45 ++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 80f859391..04dc494f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -743,15 +743,12 @@ jobs: needs: Build-Linux-Ubuntu + env: + QT_VERSION: 6.10.1 + steps: - uses: actions/checkout@v4 - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: AmneziaVPN_${{ env.VERSION }}_linux_x64.tar.zip - path: build/ - - name: Install Qt uses: jurplel/install-qt-action@v3 with: @@ -768,6 +765,19 @@ jobs: py7zrversion: '==0.22.*' extra: '--base ${{ env.QT_MIRROR }}' + - name: 'Get version from CMakeLists.txt' + id: get_version + run: | + VERSION=$(grep 'set(AMNEZIAVPN_VERSION' CMakeLists.txt | sed -E 's/.*AMNEZIAVPN_VERSION ([0-9]+.[0-9]+.[0-9]+.[0-9]+)\)/\1/') + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "Version: $VERSION" + + - name: Download build artifacts + uses: actions/download-artifact@v4 + with: + name: AmneziaVPN_${{ env.VERSION }}_linux_x64.tar.zip + path: build/ + - name: Run tests run: | cd build @@ -780,15 +790,12 @@ jobs: needs: Build-Windows + env: + QT_VERSION: 6.10.1 + steps: - uses: actions/checkout@v4 - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: AmneziaVPN_${{ env.VERSION }}_x64.exe - path: build - - name: Install Qt uses: jurplel/install-qt-action@v3 with: @@ -805,6 +812,20 @@ jobs: py7zrversion: '==0.22.*' extra: '--base ${{ env.QT_MIRROR }}' + - name: 'Get version from CMakeLists.txt' + id: get_version + shell: bash + run: | + VERSION=$(grep 'set(AMNEZIAVPN_VERSION' CMakeLists.txt | sed -E 's/.*AMNEZIAVPN_VERSION ([0-9]+.[0-9]+.[0-9]+.[0-9]+)\)/\1/') + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "Version: $VERSION" + + - name: Download build artifacts + uses: actions/download-artifact@v4 + with: + name: AmneziaVPN_${{ env.VERSION }}_x64.exe + path: build + - name: Run tests shell: bash run: |