Skip to content

to node

to node #36

name: to node
on:
push:
branches: [ "toNodeTest" ]
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install Dependencies
run: yarn
- name: Build Project
run: |
yarn build:local
yarn export
- name: Rename and zip Export
run: |
mv out dashboard
tar czvf dashboard.tar.gz dashboard
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dashboard.tar.gz
asset_name: dashboard.tar.gz
asset_content_type: application/zip