Skip to content

Commit

Permalink
ci: Package plugin in zip
Browse files Browse the repository at this point in the history
* Grafana Labs needs to have plugin in zip format

* Use sha1sum which is what Grafana labs ask

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jan 23, 2024
1 parent 88ecc35 commit 6ac07e3
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
- main
# Just until Grafana labs review plugin
- grafana_labs_review
pull_request:
branches:
- main
# pull_request:
# branches:
# - main

jobs:
build:
Expand Down Expand Up @@ -79,26 +79,23 @@ jobs:
run: docker-compose down

- name: Package plugin
# Grafana Labs review needs the plugin file in zip format with sha1 checksum
run: |
pushd dist
tar -czvf ../grafana-dashboard-reporter-app.tar.gz *
popd
sha256sum grafana-dashboard-reporter-app.tar.gz > grafana-dashboard-reporter-app.sha256
zip -r grafana-dashboard-reporter-app.zip dist
sha1sum grafana-dashboard-reporter-app.zip > grafana-dashboard-reporter-app.zip.sha1
- name: Release nightly
uses: softprops/action-gh-release@v1
# Run this only when there is a PR merged or on main branch
# if: github.event.pull_request.merged || github.ref == 'refs/heads/main'
with:
prerelease: true
name: nightly
tag_name: nightly
name: review
tag_name: review
files: |
grafana-dashboard-reporter-app.tar.gz
grafana-dashboard-reporter-app.sha256
grafana-dashboard-reporter-app.zip
grafana-dashboard-reporter-app.zip.sha1
fail_on_unmatched_files: true
body: |
# Latest Build Complete! :rocket:
For the public download links of these build artifacts, please see:
<https://github.com/mahendrapaipuri/grafana-dashboard-reporter-app/releases/tag/nightly>
<https://github.com/mahendrapaipuri/grafana-dashboard-reporter-app/releases/tag/review>

0 comments on commit 6ac07e3

Please sign in to comment.