fix(useWriteDataCheckNParse.ts): fix that always displaying validate … #1072
Workflow file for this run
This file contains 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: build packages | |
on: | |
pull_request: | |
push: | |
tags: | |
- '*' | |
branches: | |
- 'master' | |
- 'dev/*' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
container: node:14.15 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install zip | |
run: | | |
sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | |
sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list | |
sed -i '/stretch-updates/d' /etc/apt/sources.list | |
apt-get update && apt-get install -y zip | |
- name: build | |
run: | | |
yarn | |
yarn build | |
- name: create package | |
run: | | |
touch dist/version | |
echo "github_ref: $GITHUB_REF" >> dist/version | |
echo "github_sha: $GITHUB_SHA" >> dist/version | |
zip -rq neuron-dashboard.zip ./dist | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Neuron Dashboard ${{ github.ref }} Released | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
if: startsWith(github.ref, 'refs/tags/') | |
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: ./neuron-dashboard.zip | |
asset_name: neuron-dashboard.zip | |
asset_content_type: application/zip | |
- name: build-en | |
run: | | |
yarn | |
yarn build:en | |
- name: create en package | |
run: | | |
touch dist/version | |
echo "github_ref: $GITHUB_REF" >> dist/version | |
echo "github_sha: $GITHUB_SHA" >> dist/version | |
zip -rq neuron-dashboard-en.zip ./dist | |
- name: Upload en Release Asset | |
if: startsWith(github.ref, 'refs/tags/') | |
id: upload-en-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: ./neuron-dashboard-en.zip | |
asset_name: neuron-dashboard-en.zip | |
asset_content_type: application/zip |