Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 21, 2024
1 parent 75b3770 commit bd14b46
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Build Zotero plugin.

name: Build Zotero OCR

on:
push:
# branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
# schedule:
# - cron: '21 12 * * 0'

jobs:
build-plugin:
name: Build Zotero OCR 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: Run build
run: ./release.sh $(git describe --tags || echo ci-test)

- uses: actions/upload-artifact@v4
with:
name: Zotero OCR plugin (zipped)
path: "*.xpi"

0 comments on commit bd14b46

Please sign in to comment.