-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82d3ddc
commit cf7851e
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|