Skip to content

Update TablePro component to allow table content #132

Update TablePro component to allow table content

Update TablePro component to allow table content #132

name: Build WikiBreeze
# name: Build and Release WikiBreeze
on:
push:
branches:
- "*"
paths-ignore:
- '**/README.md'
- '**/README_zh.md'
env:
TAG: v1.1.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: actions-ecosystem/action-get-latest-tag@v1
# id: get-latest-tag
- name: Echo tag
run: echo ${{ env.TAG }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Install dependencies
run: npm install
- name: Build frontend
run: npm run build:frontend
- name: Build backend for linux
run: |
env GOOS=linux GOARCH=amd64 npm run build:backend
mkdir ./WikiBreeze-linux-${{ env.TAG }}
cp -r ./Wikibreeze ./WikiBreeze-linux-${{ env.TAG }}
rm ./Wikibreeze/WikiBreeze
- name: Build backend for macos
run: |
env GOOS=darwin GOARCH=amd64 npm run build:backend
mkdir ./WikiBreeze-macos-${{ env.TAG }}
cp -r ./Wikibreeze ./WikiBreeze-macos-${{ env.TAG }}
rm ./Wikibreeze/WikiBreeze
- name: Build backend for Windows
run: |
env GOOS=windows GOARCH=amd64 npm run build:backend
mkdir ./WikiBreeze-windows-${{ env.TAG }}
cp -r ./Wikibreeze ./WikiBreeze-windows-${{ env.TAG }}
rm ./Wikibreeze/WikiBreeze.exe
- name: Upload Linux zip
uses: actions/upload-artifact@v2
with:
name: WikiBreeze-linux-${{ env.TAG }}
path: ./WikiBreeze-linux-${{ env.TAG }}
- name: Upload MacOS zip
uses: actions/upload-artifact@v2
with:
name: WikiBreeze-macos-${{ env.TAG }}
path: ./WikiBreeze-macos-${{ env.TAG }}
- name: Upload Windows zip
uses: actions/upload-artifact@v2
with:
name: WikiBreeze-windows-${{ env.TAG }}
path: ./WikiBreeze-windows-${{ env.TAG }}
# release:
# needs: build
# runs-on: ubuntu-latest
# steps:
# # Upload Linux release asset
# - name: Upload Linux Release Asset
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./WikiBreeze-linux/Wikibreeze
# asset_name: WikiBreeze-Linux.zip
# asset_content_type: application/zip
# # Upload MacOS release asset
# - name: Upload MacOS Release Asset
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./WikiBreeze-macos/Wikibreeze
# asset_name: WikiBreeze-MacOS.zip
# asset_content_type: application/zip
# # Upload Windows release asset
# - name: Upload Windows Release Asset
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./WikiBreeze-windows/Wikibreeze
# asset_name: WikiBreeze-Windows.exe
# asset_content_type: application/x-msdownload