-
Notifications
You must be signed in to change notification settings - Fork 17
26 lines (22 loc) · 718 Bytes
/
main.yml
File metadata and controls
26 lines (22 loc) · 718 Bytes
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
name: CI/CD
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setup minimum version Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- uses: actions/checkout@v1
- name: prepare manifest.json with a revision number
run: |
cp manifest.json manifest.json.bak
version=$(cat manifest.json.bak | jq -r ".version" | sed -r -e "s/$/.$(git log --oneline | wc -l)/")
cat manifest.json.bak | jq ".version |= \"$version\"" > manifest.json
- name: build xpi
run: make
- uses: actions/upload-artifact@v4
with:
name: copy-selected-tabs-to-clipboard.xpi
path: copy-selected-tabs-to-clipboard.xpi