From 192f831b16384e9ab72f6fbe7c851f02be340fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Bart=C3=ADk?= <16442967+marekaf@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:11:52 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 100f0c7..d7c9954 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,11 @@ name: Build module for every architecture on: - release: - types: [published] + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: platform: [amd64, arm64] @@ -37,17 +36,3 @@ jobs: - name: Compress extracted module run: | tar -cvf otel_ngx_module_${{ matrix.nginx_version }}_${{ matrix.platform }}.tgz otel_ngx_module.so - - - name: Upload extracted file - uses: actions/upload-artifact@v2 - with: - name: otel_ngx_module_${{ matrix.nginx_version }}_${{ matrix.platform }}.tgz - path: otel_ngx_module_${{ matrix.nginx_version }}_${{ matrix.platform }}.tgz - - - name: Upload extracted file as release artifact asset - if: github.event_name == 'release' - uses: mkatanski/release-files-action@v1.0.1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - release-tag: ${{ github.ref_name }} - file-path: otel_ngx_module_${{ matrix.nginx_version }}_${{ matrix.platform }}.tgz