File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
build :
14
14
runs-on : ubuntu-latest
15
+ env :
16
+ VERSION : ${{ github.events.input.tag }}
15
17
permissions :
16
18
contents : write
17
19
steps :
18
20
- uses : actions/checkout@v3
19
21
- name : Build the template zip
20
22
run : |
21
- sed '2s/^/VERSION=${{ github.events.input.tag }} \n/' core.sh
23
+ sed -i '2s/^/VERSION='$VERSION' \n/' core.sh
22
24
mkdir -p template
23
25
mv examples/template/* template/ || echo ok
24
26
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/.
27
31
zip -r template.zip template/*
28
32
29
33
# same thing for tailwind template
30
34
mkdir -p tailwind
31
35
mv examples/tailwind/* tailwind/ || echo ok
32
36
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/.
35
41
zip -r template-tailwind.zip tailwind/*
36
42
- uses : ncipollo/release-action@v1
37
43
with :
You can’t perform that action at this time.
0 commit comments