Update server.tsx #3
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: Publish | |
on: | |
push: | |
jobs: | |
publish: | |
name: Publish for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
build_command_tag: mac | |
artifact_name: './out/mac/' | |
asset_name: 1Mind-MacOS@$tag.zip | |
- os: windows-latest | |
build_command_tag: win | |
artifact_name: './out/win-unpacked/' | |
asset_name: 1Mind-Windows$tag.zip | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Pre-Build | |
run: | | |
npm install | |
npm run prod | |
- name: Build | |
run: npm run build:${{ matrix.build_command_tag}} | |
- name: Package | |
# You may pin to the exact commit or the version. | |
# uses: TheDoctor0/zip-release@4fb9e4ff72847dd3d1c111cf63834e353ed7cb3d | |
uses: TheDoctor0/zip-release@0.6.0 | |
with: | |
# Filename for archive | |
filename: ${{ matrix.asset_name}} | |
# Base path for archive files | |
path: ${{ matrix.artifact_name}} | |
- name: Upload | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ matrix.asset_name }} | |
asset_name: ${{ matrix.asset_name }} | |
tag: ${{ github.ref }} | |
release_name: "Development Release" | |
prerelease: true |