Skip to content

Commit 39f47e7

Browse files
committed
fixed for sure
1 parent c590f95 commit 39f47e7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,32 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
env:
16+
VERSION: ${{ github.events.input.tag }}
1517
permissions:
1618
contents: write
1719
steps:
1820
- uses: actions/checkout@v3
1921
- name: Build the template zip
2022
run: |
21-
sed '2s/^/VERSION=${{ github.events.input.tag }}\n/' core.sh
23+
sed -i '2s/^/VERSION='$VERSION'\n/' core.sh
2224
mkdir -p template
2325
mv examples/template/* template/ || echo ok
2426
mv examples/template/.gitignore template/ || echo ok
25-
cp -f core.sh template/.
26-
cp -f start.sh template/.
27+
unlink template/core.sh
28+
unlink template/start.sh
29+
cp core.sh template/.
30+
cp start.sh template/.
2731
zip -r template.zip template/*
2832
2933
# same thing for tailwind template
3034
mkdir -p tailwind
3135
mv examples/tailwind/* tailwind/ || echo ok
3236
mv examples/tailwind/.gitignore tailwind/ || echo ok
33-
cp -f core.sh tailwind/.
34-
cp -f start.sh tailwind/.
37+
unlink tailwind/core.sh
38+
unlink tailwind/start.sh
39+
cp core.sh tailwind/.
40+
cp start.sh tailwind/.
3541
zip -r template-tailwind.zip tailwind/*
3642
- uses: ncipollo/release-action@v1
3743
with:

0 commit comments

Comments
 (0)