From a9214aa820ca3c165b4753e9cd2b60b3bd3479ad Mon Sep 17 00:00:00 2001 From: Eric Wang <37554696+ericwang401@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:17:00 -0400 Subject: [PATCH] Fix release.yml not adding example env --- .github/workflows/release.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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