Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

v3.0.4

v3.0.4 #145

Workflow file for this run

---
name: Release
on:
release:
types:
- created
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: 'Build and Publish Artifacts'
runs-on: ubuntu-latest
steps:
- name: 'Checkout Sources'
uses: actions/checkout@v2
- name: 'Prepare Node.js'
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: 'Fetch Dependencies'
run: npm install
- name: 'Build Dashboard'
run: npm run build
- name: 'Prepare Tarball'
run: tar -cvzf ./dashboard.tar.gz build/
- name: 'Upload Tarball'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: ./dashboard.tar.gz
asset_name: dashboard.tar.gz
asset_content_type: application/gzip
upload_url: ${{ github.event.release.upload_url }}
- name: 'Trigger agent code update'
if: github.event.release.prerelease == false
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
repo: netdata/netdata
workflow: Dashboard Version PR
ref: refs/heads/master
inputs: '{"dashboard_version": "${{ github.event.release.tag_name }}"}'