From 5e674703cb83e1650b782b7a3d48d4aebe9f8be2 Mon Sep 17 00:00:00 2001 From: 4Source <38220764+4Source@users.noreply.github.com> Date: Sat, 16 Aug 2025 23:00:10 +0200 Subject: [PATCH] Fix Continuous Deployment with missing (optional) styles.css --- .github/workflows/cd.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index e48a9a0..3e84c14 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -65,7 +65,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + FILES="main.js manifest.json" + if [ -f styles.css ]; then + FILES="$FILES styles.css" + fi gh release create "${{ steps.version-bump.outputs.new_version }}" \ - --title="${{ steps.version-bump.outputs.new_version }}" \ - --draft \ - main.js manifest.json styles.css \ No newline at end of file + --title "${{ steps.version-bump.outputs.new_version }}" \ + --draft $FILES