From 186d57be928428ecc08e5e5fb65db35023bd403e Mon Sep 17 00:00:00 2001 From: Danila Vershinin Date: Fri, 3 Jan 2025 12:00:04 +0800 Subject: [PATCH] Update NGINX download method and improve consistency Replaced manual NGINX downloading with the `lastversion-action` GitHub action for better maintainability and simplicity. Corrected a typo in the README ("WordPress" instead of "Wordpress") and removed an unused Patreon funding entry in the configuration file. --- .github/FUNDING.yml | 1 - .github/workflows/build.yml | 18 ++++++++---------- README.md | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index c291e6d..dd920f4 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -5,5 +5,4 @@ ko_fi: null liberapay: null open_collective: null otechie: null -patreon: getpagespeed tidelift: null diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd0bb4c..9594f5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,16 +21,14 @@ jobs: - name: Create NGINX download directory run: | mkdir nginx - wget -O nginx.tar.gz https://nginx.org/download/nginx-1.26.2.tar.gz - tar -xzf nginx.tar.gz -C nginx --strip-components=1 - -# - name: Download ${{ matrix.nginx-branch }} NGINX -# uses: dvershinin/lastversion-action@main -# with: -# repository: 'nginx' -# action: 'unzip' -# branch: ${{ matrix.nginx-branch }} -# working_directory: ./nginx + + - name: Download ${{ matrix.nginx-branch }} NGINX + uses: dvershinin/lastversion-action@main + with: + repository: 'nginx' + action: 'unzip' + branch: ${{ matrix.nginx-branch }} + working_directory: ./nginx - name: Configure NGINX to compile with the module statically run: | diff --git a/README.md b/README.md index 9da7b35..3da46ab 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ curl -IL https://www.example.com/ Another worthy thing to mention is that it makes little to no sense applying dynamic `ETag` on a page that changes on each reload. E.g. I found I wasn't using the dynamic `ETag` with benefits, because of ``, -in my Wordpress theme's `header.php`, since in this function: +in my WordPress theme's `header.php`, since in this function: > the selection is random and changes each time the function is called