Skip to content

Commit 26d70cf

Browse files
authored
Create release.yml
1 parent f06e1a4 commit 26d70cf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Releases
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag'
8+
required: true
9+
default: 'v0.0.0'
10+
type: string
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Build the template zip
20+
run: |
21+
mv examples/template/* . || echo ok
22+
rm -rf examples README.md bootstrap.sh
23+
zip -r template.zip *
24+
- uses: ncipollo/release-action@v1
25+
with:
26+
artifacts: "template.zip"
27+
tag: ${{ github.event.inputs.tag }}

0 commit comments

Comments
 (0)