-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.13 KB
/
build.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
name: Build
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: yarn install
- run: yarn run prod
- name: Package for Chrome
working-directory: dist/browser/chrome
run: zip -r ../garmin-connect-enhancements.unpackaged.chrome.zip *
- name: Package for Firefox / Gecko
working-directory: dist/browser/gecko
run: zip -r ../garmin-connect-enhancements.unpackaged.gecko.zip *
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist/browser/garmin-connect-enhancements.unpackaged.chrome.zip
dist/browser/garmin-connect-enhancements.unpackaged.gecko.zip
dist/userscript/garmin-connect-enhancements.user.js