Skip to content

Commit 4e4efd6

Browse files
Initialize
1 parent 17a7961 commit 4e4efd6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,15 @@ jobs:
6666

6767
- name: Install GitHub CLI
6868
run: sudo apt-get install gh -y
69+
- name: Zip release assets
70+
run: |
71+
zip -r release.zip index.js package.json templates
6972
7073
- name: Create GitHub release
7174
if: steps.check.outputs.version_equal == 'true'
7275
run: |
7376
gh release create "v${{ steps.check.outputs.new_version }}" \
74-
./index.js \
75-
./templates \
76-
./package.json \
77+
./release.zip \
7778
--title "v${{ steps.check.outputs.new_version }}"
7879
env:
79-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async function init() {
292292

293293
const templateDir = path.resolve(
294294
fileURLToPath(import.meta.url),
295-
"../..",
295+
"../",
296296
`templates/${template}`
297297
);
298298

0 commit comments

Comments
 (0)