-
-
Notifications
You must be signed in to change notification settings - Fork 27
45 lines (37 loc) · 1.12 KB
/
release.yml
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
name: Latest Release Build
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- run: |
npm install
npm run lint:check
# Extract version number from the tag
VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//')
npm run build
- name: Upload Chrome package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/HyperChat-chrome.zip
asset_name: HyperChat-Chrome.zip
tag: ${{ github.ref }}
overwrite: true
- name: Upload Firefox package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/HyperChat-firefox.zip
asset_name: HyperChat-Firefox.zip
tag: ${{ github.ref }}
overwrite: true