Skip to content

Commit 764a973

Browse files
committed
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.
1 parent 66c486f commit 764a973

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
env:
44
php_version: "8.2"
5-
blob_name: "simpay-wordpress-*.zip"
5+
blob_name: "simpay-wordpress-${{ github.ref_name }}.zip"
66
archive_format: "zip"
77

88
on:
@@ -28,6 +28,8 @@ jobs:
2828
php_extensions: yaml
2929
command: archive
3030
args: --format=${{ env.archive_format }}
31+
- name: Rename archive
32+
run: mv simpay-wordpress.zip simpay-wordpress-${{ github.ref_name }}.zip
3133
- name: Release
3234
uses: softprops/action-gh-release@v1
3335
if: success() || failure()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"DOCKER_ENV",
2121
"docker_tag"
2222
],
23-
"name": "simpay-wordpress-{$version}.zip"
23+
"name": "simpay-wordpress.zip"
2424
}
2525
}

0 commit comments

Comments
 (0)