Skip to content

Commit 67542cc

Browse files
committed
Add GitHub Actions workflow for building and releasing speedreader.html
1 parent bd6ada0 commit 67542cc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '16'
17+
- name: Build
18+
run: node build.js
19+
- name: Check build output
20+
run: ls -lh dist/speedreader.html
21+
- name: Create Release
22+
uses: softprops/action-gh-release@v1
23+
with:
24+
files: dist/speedreader.html
25+
tag_name: v1.0.${{ github.run_number }}
26+
name: Release v1.0.${{ github.run_number }}
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)