Skip to content

Commit

Permalink
Refactor CI workflow and archive naming
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
DarkGL committed Oct 10, 2023
1 parent 66c486f commit 764a973
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"DOCKER_ENV",
"docker_tag"
],
"name": "simpay-wordpress-{$version}.zip"
"name": "simpay-wordpress.zip"
}
}

0 comments on commit 764a973

Please sign in to comment.