Skip to content

Commit

Permalink
Fix release.yml not adding example env
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Oct 14, 2024
1 parent 3643a71 commit bc6f9e4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ jobs:
- name: Create Release Archive
run: |
# Array of files and directories to remove
files_to_remove=(
"node_modules/"
"tests/"
"CODE_OF_CONDUCT.md"
"CONTRIBUTOR_LICENSE_AGREEMENT"
"crowdin.yml"
"docker-compose.ci.yml"
"phpstan.neon"
"phpunit.xml"
"stats.html"
)
# Loop over the files to remove and delete them
rm -rf "${files_to_remove[@]}"
# Array of specific dot files to include
files_to_include=(
".editorconfig"
".env.example"
Expand All @@ -33,8 +50,6 @@ jobs:
".prettierignore"
".prettierrc.json"
)
rm -rf node_modules/ tests/ CODE_OF_CONDUCT.md CONTRIBUTOR_LICENSE_AGREEMENT crowdin.yml docker-compose.ci.yml phpstan.neon phpunit.xml stats.html
# Archive files, using * directly outside the array for proper expansion
tar -czf panel.tar.gz * "${files_to_include[@]}"
Expand Down

0 comments on commit bc6f9e4

Please sign in to comment.