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 7957141 commit 98bf2ec
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ jobs:
- name: Create Release Archive
run: |
files_to_remove=(
files_to_include=(
"."
".editorconfig"
".env.example"
".gitattributes"
".gitignore"
".prettierignore"
".prettierrc.json"
)
files_to_exclude=(
"node_modules/"
"tests/"
"CODE_OF_CONDUCT.md"
Expand All @@ -36,20 +46,14 @@ jobs:
"phpunit.xml"
"stats.html"
)
rm -rf "${files_to_remove[@]}"
files_to_include=(
"."
".editorconfig"
".env.example"
".gitattributes"
".gitignore"
".prettierignore"
".prettierrc.json"
)
tar -czf panel.tar.gz "${files_to_include[@]}"
# Build the exclude parameters for tar
exclude_params=()
for file in "${files_to_exclude[@]}"; do
exclude_params+=(--exclude="$file")
done
tar "${exclude_params[@]}" -czf panel.tar.gz "${files_to_include[@]}"
- name: Extract Changelog
id: extract_changelog
Expand Down

0 comments on commit 98bf2ec

Please sign in to comment.