Skip to content

Release dashboard

Release dashboard #24

Workflow file for this run

name: Release dashboard
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: ''
jobs:
release-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Installing dependencies and build dashboard
run: |
npm install
npm run build
- name: Zip files
run: |
cd dist
zip -r ../dashboard.zip *
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: Release ${{ github.event.inputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dashboard.zip
asset_name: dashboard.zip
asset_content_type: application/zip