From 764a973d2ea0c2f7a2acbe34cc2d251a41cc9b8b Mon Sep 17 00:00:00 2001 From: Rafal Wiecek Date: Tue, 10 Oct 2023 15:59:20 +0200 Subject: [PATCH] Refactor CI workflow and archive naming - Refactored the CI workflow to dynamically generate the blob name for archiving. - Renamed the archive file to include the branch name. - Updated composer.json to remove version placeholder in archive name. --- .github/workflows/ci.yml | 4 +++- composer.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9ec3eb..2d98bf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI env: php_version: "8.2" - blob_name: "simpay-wordpress-*.zip" + blob_name: "simpay-wordpress-${{ github.ref_name }}.zip" archive_format: "zip" on: @@ -28,6 +28,8 @@ jobs: php_extensions: yaml command: archive args: --format=${{ env.archive_format }} + - name: Rename archive + run: mv simpay-wordpress.zip simpay-wordpress-${{ github.ref_name }}.zip - name: Release uses: softprops/action-gh-release@v1 if: success() || failure() diff --git a/composer.json b/composer.json index 4700c6d..d850812 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,6 @@ "DOCKER_ENV", "docker_tag" ], - "name": "simpay-wordpress-{$version}.zip" + "name": "simpay-wordpress.zip" } }