-
-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (47 loc) · 1.33 KB
/
release.yml
File metadata and controls
50 lines (47 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Releases
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
default: 'v0.0.0'
type: string
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.inputs.tag }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Build the template zip
run: |
sed -i '2s/^/VERSION='$VERSION'\n/' core.sh
mkdir -p template
mv examples/template/* template/ || echo ok
mv examples/template/.gitignore template/ || echo ok
unlink template/core.sh
unlink template/start.sh
cp core.sh template/.
cp start.sh template/.
cd template/
zip -r ../template.zip .
cd ..
rm -rf template/
# same thing for tailwind template
mkdir -p template
mv examples/tailwind/* template/ || echo ok
mv examples/tailwind/.gitignore template/ || echo ok
unlink template/core.sh
unlink template/start.sh
cp core.sh template/.
cp start.sh template/.
cd template/
zip -r ../template-tailwind.zip .
- uses: ncipollo/release-action@v1
with:
artifacts: "template.zip,template-tailwind.zip,core.sh"
tag: ${{ github.event.inputs.tag }}
generateReleaseNotes: true