Attach Grafana Dashboards to Release 4.8.3 #23
Workflow file for this run
This file contains hidden or 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
| name: Attach Grafana Dashboard Release Artifact | |
| run-name: Attach Grafana Dashboards to Release ${{ github.event.release.tag_name }} | |
| on: | |
| release: | |
| types: | |
| - created | |
| permissions: | |
| contents: write | |
| jobs: | |
| attach-dashboard-zip: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.release.tag_name }} | |
| - name: Create ZIP file | |
| run: | | |
| mkdir -p artifacts | |
| zip -j "artifacts/dashboards-${{ github.event.release.tag_name }}.zip" deploy/charts/airlock-microgateway/dashboards/*.json | |
| - name: Upload release artifact | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release upload "${{ github.event.release.tag_name }}" "artifacts/dashboards-${{ github.event.release.tag_name }}.zip" |