diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86f3ec8d890..7c33dcac9ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,9 +25,20 @@ jobs: - name: Create Release Archive run: | - rm -rf node_modules/ tests/ CODE_OF_CONDUCT.md CONTRIBUTOR_LICENSE_AGREEMENT crowdin.yml docker-compose.ci.yml phpstan.neon phpunit.xml stats.html + files_to_include=( + "*" + ".editorconfig" + ".env.example" + ".gitattributes" + ".gitignore" + ".prettierignore" + ".prettierrc.json" + ) - tar -czf panel.tar.gz * .editorconfig .env.example .gitattributes .gitignore .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 + + # Use array to include specific files + tar -czf panel.tar.gz "${files_to_include[@]}" - name: Extract Changelog id: extract_changelog