-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (26 loc) · 929 Bytes
/
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
# Build Zotero plugin.
name: Build Zotero Swisscovery UB Bern plugin
on:
pull_request:
branches: [ "master" ]
jobs:
build-plugin:
name: Build and release plugin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup git
run: git config --global user.email "[email protected]" && git config --global user.name "GitHub CI"
- name: Install dependencies
run: sudo apt update && sudo apt install jq
- name: Echo tag version
run: echo $(git describe --tags || echo ci-test)
- name: Run build
run: ./build.sh $(git describe --tags || echo ci-test)
- name: Prepare Update Manifests
run: ./publish.sh $(git describe --tags || echo ci-test )
- uses: actions/upload-artifact@v4
with:
name: Zotero Swisscovery UB Bern plugin (zipped)
path: "build/*.xpi"