Skip to content

Commit 5c6202c

Browse files
authored
Create create-release.yml
1 parent d5a22c4 commit 5c6202c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/create-release.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
tags:
4+
- "v[0-9]+.[0-9]+.[0-9]+*"
5+
6+
jobs:
7+
draft-release:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Update package.json
15+
uses: ramonpaolo/bump-version@v2.3.1
16+
with:
17+
tag: ${{ github.ref_name }}
18+
commit: true
19+
branch_to_push: 'main'
20+
- name: Release
21+
uses: softprops/action-gh-release@v2
22+
with:
23+
draft: true
24+
generate_release_notes: true
25+
make-linux:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Setup Node
31+
uses: actions/setup-node@v4.0.3
32+
- name: Install Deps
33+
run: npm install
34+
- name: Make
35+
run: npm run make
36+
- name: Add to release
37+
uses: softprops/action-gh-release@v2
38+
with:
39+
files: |
40+
out/make/**/*.deb
41+
out/make/**/*.rpm
42+
43+
44+

0 commit comments

Comments
 (0)