Skip to content

Commit

Permalink
Version 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
denismaier committed May 31, 2024
1 parent 82d3ddc commit cf7851e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ jobs:
name: Build and release plugin
runs-on: ubuntu-latest
env:
version: echo $(git describe --tags || echo ci-test)
assetname: zotero-swisscovery-ubbern-locations
updatelink: https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/${version}/${assetname}-${version}.xpi

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -27,19 +24,23 @@ jobs:

- name: Run build
run: |
version=$(git describe --tags || echo ci-test)
mkdir build
zip -r build/${assetname}-${version}.xpi src/*
# zip -r build/test.xpi src/*
- name: Prepare Update Manifests
- name: Prepare Update M anifests
run: |
version=$(git describe --tags || echo ci-test)
updatelink=https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/${version}/${assetname}-${version}.xpi
jq ".addons[\"[email protected]\"].updates[0].update_hash = \"sha256:`shasum -a 256 build/${assetname}-${version}.xpi | cut -d' ' -f1`\"" updates.json.tmpl |
jq --arg version "$version" '.addons["[email protected]"].updates[0].version = $version' |
jq --arg updatelink "$updatelink" '.addons["[email protected]"].updates[0].update_link = $updatelink' > updates.json
cp updates.json update.rdf
- name: Publish release
run: |
version=$(git describe --tags || echo ci-test)
git add src/install.rdf update.rdf updates.json # src/manifest.json
git commit -m "Release $version" 1>&2
git tag -a -m "Release $version" "$version"
Expand Down
2 changes: 1 addition & 1 deletion src/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RDF:about="urn:mozilla:install-manifest"
em:id="[email protected]"
em:name="Zotero Swisscovery UB Bern Locations"
em:version="5.2"
em:version="5.3"
em:type="2"
em:creator="Denis Maier"
em:description="Zotero/Jurism-Plugin zur Bestandsabfrage im Swisscovery UB Bern"
Expand Down

0 comments on commit cf7851e

Please sign in to comment.