Skip to content

Commit

Permalink
Merge pull request #92 from TankNee/rebuild/fix
Browse files Browse the repository at this point in the history
[fix]: fix release script
  • Loading branch information
TankNee authored Jun 30, 2021
2 parents 298325b + 897cb19 commit 752f4b0
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 51 deletions.
79 changes: 59 additions & 20 deletions .github/workflows/BuildAndRelease.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Neeto-Vue Release Action
name: Memocast Release Action

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -22,7 +22,9 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@master
uses: actions/checkout@v2
with:
ref: rebuild/analysis

- name: Install Node.js, NPM
uses: actions/setup-node@v1
Expand All @@ -33,16 +35,22 @@ jobs:
run: |
npm install
npm run build-publish
- name: Compress Bundle
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Rename Package
run: |
npm install -g bestzip
cd dist/electron
bestzip Neeto-Vue-win32-x64.zip Neeto-Vue-win32-x64/*
cd dist/electron/Packaged
ren Memocast*.exe Memocast-Setup.exe
- name: Upload Win Package
uses: actions/upload-artifact@v1
with:
name: Windows_Dist
path: dist/electron/Neeto-Vue-win32-x64.zip
path: dist/electron/Packaged/Memocast-Setup.exe
- name: Upload latest.yml
uses: actions/upload-artifact@v1
with:
name: Windows_latest_yml
path: dist/electron/Packaged/latest.yml
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -51,7 +59,9 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@master
uses: actions/checkout@v2
with:
ref: rebuild/analysis

- name: Install Node.js, NPM
uses: actions/setup-node@v1
Expand All @@ -61,16 +71,22 @@ jobs:
run: |
npm install
npm run build-publish
- name: Compress Bundle
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Rename Package
run: |
npm install -g bestzip
cd dist/electron
bestzip Neeto-Vue-linux-x64.zip Neeto-Vue-linux-x64/*
cd dist/electron/Packaged
cp Memocast*.AppImage Memocast-x86_64.AppImage
- name: Upload Linux Package
uses: actions/upload-artifact@v1
with:
name: Linux_Dist
path: dist/electron/Neeto-Vue-linux-x64.zip
path: dist/electron/Packaged/Memocast-x86_64.AppImage
- name: Upload latest-linux.yml
uses: actions/upload-artifact@v1
with:
name: Linux_latest_yml
path: dist/electron/Packaged/latest-linux.yml
build-mac:
# The type of runner that the job will run on
runs-on: macos-latest
Expand All @@ -79,7 +95,9 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@master
uses: actions/checkout@v2
with:
ref: rebuild/analysis

- name: Install Node.js, NPM
uses: actions/setup-node@v1
Expand All @@ -89,16 +107,22 @@ jobs:
run: |
npm install
npm run build-publish
- name: Compress Bundle
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Rename Package
run: |
npm install -g bestzip
cd dist/electron
bestzip Neeto-Vue-darwin-x64.zip Neeto-Vue-darwin-x64/*
cd dist/electron/Packaged
cp Memocast*.dmg Memocast.dmg
- name: Upload Mac Package
uses: actions/upload-artifact@v1
with:
name: MacOS_Dist
path: dist/electron/Neeto-Vue-darwin-x64.zip
path: dist/electron/Packaged/Memocast.dmg
- name: Upload latest-mac.yml
uses: actions/upload-artifact@v1
with:
name: Mac_latest_yml
path: dist/electron/Packaged/latest-mac.yml
release:
needs: [build-windows, build-linux, build-mac]
runs-on: ubuntu-latest
Expand All @@ -110,21 +134,36 @@ jobs:
with:
name: Linux_Dist
path: artifacts
- name: Download latest-linux.yml
uses: actions/download-artifact@v1
with:
name: Linux_latest_yml
path: artifacts
- name: Download pre-built packages for Windows
uses: actions/download-artifact@v1
with:
name: Windows_Dist
path: artifacts
- name: Download latest.yml
uses: actions/download-artifact@v1
with:
name: Windows_latest_yml
path: artifacts
- name: Download pre-built packages for MacOS
uses: actions/download-artifact@v1
with:
name: MacOS_Dist
path: artifacts
- name: Download latest-mac.yml
uses: actions/download-artifact@v1
with:
name: Mac_latest_yml
path: artifacts
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
name: Neeto-Vue
name: Memocast
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "artifacts/*"
draft: true
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/Memocast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,39 @@ jobs:
# release:
# needs: [build-windows, build-linux, build-mac]
# runs-on: ubuntu-latest
# if: contains(github.ref, 'refs/tags/v')
# steps:
# - uses: actions/checkout@v1
# - name: Download pre-built packages for Linux
# uses: actions/download-artifact@v1
# with:
# name: Linux_Dist
# path: artifacts
# - name: Download latest-linux.yml
# uses: actions/download-artifact@v1
# with:
# name: Linux_latest_yml
# path: artifacts
# - name: Download pre-built packages for Windows
# uses: actions/download-artifact@v1
# with:
# name: Windows_Dist
# path: artifacts
# - name: Download latest.yml
# uses: actions/download-artifact@v1
# with:
# name: Windows_latest_yml
# path: artifacts
# - name: Download pre-built packages for MacOS
# uses: actions/download-artifact@v1
# with:
# name: MacOS_Dist
# path: artifacts
# - name: Download latest-mac.yml
# uses: actions/download-artifact@v1
# with:
# name: Mac_latest_yml
# path: artifacts
# - name: Create Release
# id: create_release
# uses: ncipollo/release-action@v1
Expand Down
31 changes: 2 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cn.memocast.app",
"version": "1.0.4",
"version": "2.0.0",
"description": "An Awesome WizNote Desktop Application",
"productName": "Memocast",
"author": "tanknee <[email protected]>",
Expand Down Expand Up @@ -55,7 +55,6 @@
"turndown": "^6.0.0",
"underscore": "^1.9.2",
"unsplash-js": "^6.0.0",
"vditor": "^3.8.5",
"vega": "^5.10.0",
"vega-embed": "^6.4.0",
"vega-lite": "^4.7.0",
Expand Down

0 comments on commit 752f4b0

Please sign in to comment.