Skip to content

Commit

Permalink
build: upgrade to 2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Feb 5, 2021
1 parent b2ee97f commit a66f1eb
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,34 @@ jobs:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_REPO: github.com/hq001/hq001.github.io.git
run: ./script/deploy.sh $ACCESS_TOKEN $GITHUB_REPO dist

build-electron:
name: Automatically release electron version
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12

- name: Load node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Build electron
run: yarn build:electron

- name: Releases to github
run: |
echo 'Waiting for scripting'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "radishes",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"private": true,
"main": "./background.js",
"author": "Linkontoask",
Expand All @@ -16,7 +16,7 @@
"lint:style": "stylelint --fix \"src/**/*.{css,less}\" --cache --cache-location node_modules/.cache/stylelint/",
"build": "cross-env NODE_ENV=production vue-cli-service build --mode browser --modern",
"build:storybook": "build-storybook",
"build:electron": "vue-cli-service electron:build --mode electron.build --win nsis",
"build:electron": "rimraf dist-electron vue-cli-service electron:build --mode electron.build --win nsis",
"build:api": "concurrently -r \"yarn dev:api\" \"node script/server-local.js\"",
"dev": "concurrently -r \"yarn dev:api\" \"yarn generate:theme\" \"yarn dev:web\"",
"dev:web": "cross-env NODE_ENV=development vue-cli-service serve --mode browser",
Expand Down
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ module.exports = {
builderOptions: {
publish: [
{ provider: 'github', owner: 'Linkontoask', repo: 'radishes' }
// token: '4b955963e7eadaa675c2cf0b183b24c154129577'
]
],
artifactName: pkg.name + '.Setup.' + '${version}.${ext}'
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18573,13 +18573,20 @@ rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3, rimra
dependencies:
glob "^7.1.3"

rimraf@^3.0.0, rimraf@^3.0.2:
rimraf@^3.0.0:
version "3.0.2"
resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=
dependencies:
glob "^7.1.3"

rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz?cache=0&sync_timestamp=1599054104695&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=
dependencies:
glob "^7.1.3"

ripemd160@^2.0.0, ripemd160@^2.0.1:
version "2.0.2"
resolved "https://registry.npm.taobao.org/ripemd160/download/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
Expand Down

0 comments on commit a66f1eb

Please sign in to comment.