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