From 2f174b235737eb025b168802bb27b5173ae342b6 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:17:21 +0200 Subject: [PATCH 01/21] new job --- .github/workflows/release.yaml | 48 ++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d1b9c831..9f28a3f1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,8 @@ name: "Build app and create release" on: push: - tags: - - v*.*.* + branches: + - ubuntu_22.04-lts-fix jobs: build-wireguard-go: @@ -57,6 +57,50 @@ jobs: uses: ./.github/workflows/sbom.yml with: upload_url: ${{ needs.create-release.outputs.upload_url }} + ubuntu-22-04-build: + runs-on: + - self-hosted + - Linux + - ${{ matrix.architecture }} + container: + image: ubuntu:22.04 + steps: + - name: Update and upgrade apt + run: | + apt-get update + apt-get upgrade -y + - name: Install dependencies + run: | + apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip git protobuf-compiler libprotobuf-dev rpm + - name: Install Node.js + run: | + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y nodejs + - name: Install pnpm + run: npm install -g pnpm@10.17 + - name: Install Rust + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + . $HOME/.cargo/env + - name: Clone repository + run: | + git clone https://github.com/defguard/defguard-client.git . + - name: Install Node dependencies + run: pnpm install --frozen-lockfile + - name: Build Tauri app + run: | + . $HOME/.cargo/env + pnpm tauri build + - name: Build project + run: | + cargo build --release + mkdir -p output + cp target/release/binary output/ + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: 2204-build + path: output/ build-linux: needs: From 4d6f5d066fe1cf829e3889b2cf15eb5009da0021 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:20:58 +0200 Subject: [PATCH 02/21] refresh + typo fix --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9f28a3f1..a58fe51e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,7 +84,7 @@ jobs: . $HOME/.cargo/env - name: Clone repository run: | - git clone https://github.com/defguard/defguard-client.git . + git clone https://github.com/DefGuard/client.git - name: Install Node dependencies run: pnpm install --frozen-lockfile - name: Build Tauri app From 938e9ddae6b67bb28e200e76f0e5377229d58071 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:29:54 +0200 Subject: [PATCH 03/21] workflow edit --- .github/workflows/release.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a58fe51e..c34a470f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,6 +58,8 @@ jobs: with: upload_url: ${{ needs.create-release.outputs.upload_url }} ubuntu-22-04-build: + needs: + - create-release runs-on: - self-hosted - Linux @@ -65,6 +67,9 @@ jobs: container: image: ubuntu:22.04 steps: + - uses: actions/checkout@v5 + with: + submodules: "recursive" - name: Update and upgrade apt run: | apt-get update From 644e2a1fff365875fb0af6d11cbfeab681484d14 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:32:40 +0200 Subject: [PATCH 04/21] workflow edit 2 --- .github/workflows/release.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c34a470f..e99433f1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -64,6 +64,17 @@ jobs: - self-hosted - Linux - ${{ matrix.architecture }} + strategy: + fail-fast: false + matrix: + architecture: [ARM64, X64] + include: + - architecture: ARM64 + deb_arch: arm64 + binary_arch: aarch64 + - architecture: X64 + deb_arch: amd64 + binary_arch: x86_64 container: image: ubuntu:22.04 steps: From 19322b3b1ceffd31fc7c439e6c50b51405136f4c Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:38:17 +0200 Subject: [PATCH 05/21] git need to be installed first --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e99433f1..530f9a8c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,13 +78,13 @@ jobs: container: image: ubuntu:22.04 steps: + - name: Update apt and install git + run: | + apt-get update + apt-get install -y git - uses: actions/checkout@v5 with: submodules: "recursive" - - name: Update and upgrade apt - run: | - apt-get update - apt-get upgrade -y - name: Install dependencies run: | apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip git protobuf-compiler libprotobuf-dev rpm From 453df506756bfe9456e9ac7a14f828089f5a8458 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:55:24 +0200 Subject: [PATCH 06/21] git safe-directory --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 530f9a8c..84209c08 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,6 +82,12 @@ jobs: run: | apt-get update apt-get install -y git + - name: Configure Git safe directory + run: | + git config --global --add safe.directory /__w/client/client + git config --global --add safe.directory /__w/client/client/src-tauri/proto + git config --global --add safe.directory /__w/client/client/src/shared/defguard-ui + git config --global --add safe.directory '*' - uses: actions/checkout@v5 with: submodules: "recursive" From e36b105dc0dbfe73ed486516f2bbf7f4d9b8099c Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:16:51 +0200 Subject: [PATCH 07/21] edit workflow again --- .github/workflows/release.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 84209c08..63ee92e4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -77,6 +77,8 @@ jobs: binary_arch: x86_64 container: image: ubuntu:22.04 + env: + DEBIAN_FRONTEND: noninteractive steps: - name: Update apt and install git run: | @@ -103,26 +105,25 @@ jobs: - name: Install Rust run: | curl https://sh.rustup.rs -sSf | sh -s -- -y - . $HOME/.cargo/env - - name: Clone repository - run: | - git clone https://github.com/DefGuard/client.git + source $HOME/.cargo/env - name: Install Node dependencies - run: pnpm install --frozen-lockfile + run: | + source $HOME/.cargo/env + pnpm install --frozen-lockfile - name: Build Tauri app run: | - . $HOME/.cargo/env + source $HOME/.cargo/env pnpm tauri build - - name: Build project - run: | - cargo build --release - mkdir -p output - cp target/release/binary output/ - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: 2204-build - path: output/ + name: ubuntu-2204-build-${{ matrix.architecture }} + path: | + src-tauri/target/release/bundle/deb/*.deb + src-tauri/target/release/bundle/rpm/*.rpm + src-tauri/target/release/defguard-client + src-tauri/target/release/defguard-service + src-tauri/target/release/dg build-linux: needs: From cac6a3e85471d1f8cd6f6c4a0f352bc28a33acab Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:24:28 +0200 Subject: [PATCH 08/21] fix sh --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 63ee92e4..a2857d3b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -105,7 +105,8 @@ jobs: - name: Install Rust run: | curl https://sh.rustup.rs -sSf | sh -s -- -y - source $HOME/.cargo/env + echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /root/.bashrc + export PATH="$HOME/.cargo/bin:$PATH" - name: Install Node dependencies run: | source $HOME/.cargo/env From cc097e1466ef4deec6e44bb31bffc59c5aeda4f5 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:30:25 +0200 Subject: [PATCH 09/21] fix --- .github/workflows/release.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a2857d3b..773a94d0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -109,7 +109,6 @@ jobs: export PATH="$HOME/.cargo/bin:$PATH" - name: Install Node dependencies run: | - source $HOME/.cargo/env pnpm install --frozen-lockfile - name: Build Tauri app run: | From 4fe6d97e29fb7ec2a47c84bd62a74e6a0fe9ab3b Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:37:16 +0200 Subject: [PATCH 10/21] fix --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 773a94d0..23736574 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,7 +112,7 @@ jobs: pnpm install --frozen-lockfile - name: Build Tauri app run: | - source $HOME/.cargo/env + export PATH="$HOME/.cargo/bin:$PATH" pnpm tauri build - name: Upload artifact uses: actions/upload-artifact@v4 From 51bbd3e6a74038e6379e3f2a6981b31fe7e97744 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:53:55 +0200 Subject: [PATCH 11/21] build tauri packages differently --- .github/workflows/release.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 23736574..7500b8ae 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -110,10 +110,12 @@ jobs: - name: Install Node dependencies run: | pnpm install --frozen-lockfile - - name: Build Tauri app - run: | - export PATH="$HOME/.cargo/bin:$PATH" - pnpm tauri build + - name: Build packages + uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: "--bundles deb,rpm" - name: Upload artifact uses: actions/upload-artifact@v4 with: From 2e56a8b3526055d913f55d3c5639becaf8482a75 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:10:07 +0200 Subject: [PATCH 12/21] another approach on 22.04 workflow --- .github/workflows/release.yaml | 49 ++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7500b8ae..bf81f34b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,36 +80,39 @@ jobs: env: DEBIAN_FRONTEND: noninteractive steps: - - name: Update apt and install git - run: | - apt-get update - apt-get install -y git - - name: Configure Git safe directory - run: | - git config --global --add safe.directory /__w/client/client - git config --global --add safe.directory /__w/client/client/src-tauri/proto - git config --global --add safe.directory /__w/client/client/src/shared/defguard-ui - git config --global --add safe.directory '*' - uses: actions/checkout@v5 with: submodules: "recursive" - - name: Install dependencies - run: | - apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip git protobuf-compiler libprotobuf-dev rpm - - name: Install Node.js + - uses: pnpm/action-setup@v4 + with: + version: 10.17 + run_install: false + - name: Get pnpm store directory + shell: bash run: | - curl -fsSL https://deb.nodesource.com/setup_22.x | bash - - apt-get install -y nodejs - - name: Install pnpm - run: npm install -g pnpm@10.17 - - name: Install Rust + echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV} + - name: Write release version run: | - curl https://sh.rustup.rs -sSf | sh -s -- -y - echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> /root/.bashrc - export PATH="$HOME/.cargo/bin:$PATH" + VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1) + echo Version: $VERSION + echo "VERSION=$VERSION" >> ${GITHUB_ENV} + - uses: actions/setup-node@v5 + with: + node-version: "24" + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-build-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-build-store- - name: Install Node dependencies + run: pnpm install --frozen-lockfile + - uses: dtolnay/rust-toolchain@stable + - name: Install dependencies run: | - pnpm install --frozen-lockfile + sudo apt-get update + apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip protobuf-compiler libprotobuf-dev rpm - name: Build packages uses: tauri-apps/tauri-action@v0 env: From 02421d7319c741aff56308320989a2da4374b829 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:12:11 +0200 Subject: [PATCH 13/21] add git --- .github/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bf81f34b..bc0ae427 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,6 +80,9 @@ jobs: env: DEBIAN_FRONTEND: noninteractive steps: + - name: git install + run: | + sudo apt-get install -y git - uses: actions/checkout@v5 with: submodules: "recursive" From 80ae4634610d7250deb8c4baa4be1eb2ab743c7b Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:15:18 +0200 Subject: [PATCH 14/21] remove sudo --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bc0ae427..0251bad7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,7 +82,8 @@ jobs: steps: - name: git install run: | - sudo apt-get install -y git + apt-get update + apt-get install -y git - uses: actions/checkout@v5 with: submodules: "recursive" @@ -114,7 +115,6 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: | - sudo apt-get update apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip protobuf-compiler libprotobuf-dev rpm - name: Build packages uses: tauri-apps/tauri-action@v0 From 57da872b90f9d9bb9f55c3b5c07a8bc6df34d4f7 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:34:51 +0200 Subject: [PATCH 15/21] safe directory --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0251bad7..29858900 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,6 +84,7 @@ jobs: run: | apt-get update apt-get install -y git + git config --global --add safe.directory '*' - uses: actions/checkout@v5 with: submodules: "recursive" From 0ca30c237a963e0b6ecfd6213c20d4795ac13768 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:38:23 +0200 Subject: [PATCH 16/21] pnpm fix --- .github/workflows/release.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 29858900..92492b60 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -92,8 +92,10 @@ jobs: with: version: 10.17 run_install: false + - uses: actions/setup-node@v5 + with: + node-version: "24" - name: Get pnpm store directory - shell: bash run: | echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV} - name: Write release version @@ -101,9 +103,6 @@ jobs: VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1) echo Version: $VERSION echo "VERSION=$VERSION" >> ${GITHUB_ENV} - - uses: actions/setup-node@v5 - with: - node-version: "24" - uses: actions/cache@v4 name: Setup pnpm cache with: From 1883331ea9ca49cf096a6029c8bad9f56ed29d59 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:41:11 +0200 Subject: [PATCH 17/21] added curl --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 92492b60..ed856dd9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -83,7 +83,7 @@ jobs: - name: git install run: | apt-get update - apt-get install -y git + apt-get install -y git curl ca-certificates git config --global --add safe.directory '*' - uses: actions/checkout@v5 with: From b04ed8897fb400f8f5e6b12f7c4989d6ad07aa7a Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:33:25 +0200 Subject: [PATCH 18/21] rust fix --- .github/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ed856dd9..49316e25 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -79,6 +79,9 @@ jobs: image: ubuntu:22.04 env: DEBIAN_FRONTEND: noninteractive + HOME: /root + RUSTUP_HOME: /root/.rustup + CARGO_HOME: /root/.cargo steps: - name: git install run: | @@ -115,7 +118,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: | - apt-get install -y curl ca-certificates build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip protobuf-compiler libprotobuf-dev rpm + apt-get install -y build-essential libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev unzip protobuf-compiler libprotobuf-dev rpm - name: Build packages uses: tauri-apps/tauri-action@v0 env: From fb231c48a5f1e444c39ea359088813db3555f228 Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:21:34 +0200 Subject: [PATCH 19/21] upload asset --- .github/workflows/release.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 49316e25..57cce4ec 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -124,17 +124,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: "--bundles deb,rpm" - - name: Upload artifact - uses: actions/upload-artifact@v4 + args: "--bundles deb" + - name: Upload DEB + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: ubuntu-2204-build-${{ matrix.architecture }} - path: | - src-tauri/target/release/bundle/deb/*.deb - src-tauri/target/release/bundle/rpm/*.rpm - src-tauri/target/release/defguard-client - src-tauri/target/release/defguard-service - src-tauri/target/release/dg + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: src-tauri/target/release/bundle/deb/defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}.deb + asset_name: defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}_ubuntu-22-04-lts.deb + asset_content_type: application/octet-stream build-linux: needs: From 8c7ce90a9017f3fe9cd6af5620afba98e47ea01c Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:45:01 +0200 Subject: [PATCH 20/21] version name fix --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 57cce4ec..273e4862 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -103,7 +103,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV} - name: Write release version run: | - VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1) + VERSION="1.5.2" echo Version: $VERSION echo "VERSION=$VERSION" >> ${GITHUB_ENV} - uses: actions/cache@v4 From 7eba7aa3a8f72dcb991cf7446f448c14bc4fc04d Mon Sep 17 00:00:00 2001 From: jakub-tldr <78603704+jakub-tldr@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:07:21 +0200 Subject: [PATCH 21/21] ready to release --- .github/workflows/release.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 273e4862..aa681a20 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,9 +1,3 @@ -name: "Build app and create release" -on: - push: - branches: - - ubuntu_22.04-lts-fix - jobs: build-wireguard-go: strategy: @@ -103,7 +97,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV} - name: Write release version run: | - VERSION="1.5.2" + VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1) echo Version: $VERSION echo "VERSION=$VERSION" >> ${GITHUB_ENV} - uses: actions/cache@v4