Skip to content

Commit 28dc3b4

Browse files
Zanna_37dbuezas
authored andcommitted
ci: compile the project using GitHub actions
The project is compiled every time a new release is published and the output file is attached to it.
1 parent 765ffc0 commit 28dc3b4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build on release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Install dependencies
14+
run: npm install
15+
16+
- name: Build
17+
run: npm run build
18+
19+
- name: Upload release asset
20+
uses: svenstaro/upload-release-action@v2
21+
with:
22+
file: dist/plotly-graph-card.js

0 commit comments

Comments
 (0)