Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
nanne007 committed Jun 28, 2020
1 parent 1c0df88 commit 6879896
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 38 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/main.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/release_assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release assets
on:
release:
types: [published]

jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: npm install
- run: npm run vscode:package -- -o move-ide.vsix
- name: Upload release asset
id: upload_release_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./move-ide.vsix
asset_name: move-ide.vsix
asset_content_type: application/zip
3 changes: 2 additions & 1 deletion download-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const https = require('https');

if (bin !== null) {
https.get(url, (res) => {
https.get(res.headers.location, (res) => {
let location = res.headers.location;
https.get(location, (res) => {
console.log('Downloading file from %s', url);
res.pipe(fs.createWriteStream(path.resolve('bin/' + tgt), {mode: '755'}));
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "move-ide",
"version": "0.3.7",
"version": "0.3.8-alpha",
"description": "Move/mvir IDE for VSCode",
"publisher": "starcoinorg",
"displayName": "Move IDE",
Expand All @@ -12,6 +12,7 @@
"scripts": {
"postinstall": "./download-binaries",
"vscode:prepublish": "npm run compile",
"vscode:package": "npx vsce package",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
Expand Down Expand Up @@ -132,7 +133,7 @@
"move.moveCompilerPath": {
"type": "string",
"default": "",
"description": "Custom path to Move Compiler binary"
"description": "Custom path to Move Compiler binary"
}
}
}
Expand Down Expand Up @@ -165,7 +166,8 @@
"devDependencies": {
"@types/node": "^14.0.1",
"@types/vscode": "^1.43.0",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"vsce": "^1.77.0"
},
"__metadata": {
"id": "7a08f3ad-eba4-44de-bca1-e41d38b68a5c",
Expand All @@ -176,7 +178,7 @@
"vscode-languageclient": "^6.1.3"
},
"move-ls": {
"version": "0.9.2-alpha",
"version": "v0.9.2-alpha",
"repository": "starcoinorg/move-tools",
"binaries": {
"win32": "move-language-server-win32.exe",
Expand All @@ -185,7 +187,7 @@
}
},
"move-executor": {
"version": "0.9.2-alpha",
"version": "v0.9.2-alpha",
"repository": "starcoinorg/move-tools",
"binaries": {
"win32": "move-executor-win32.exe",
Expand All @@ -194,12 +196,12 @@
}
},
"move-build": {
"version": "0.9.2-alpha",
"version": "v0.9.2-alpha",
"repository": "starcoinorg/move-tools",
"binaries": {
"win32": "move-build-win32.exe",
"linux": "move-build-linux",
"darwin": "move-build-darwin"
}
}
}
}

0 comments on commit 6879896

Please sign in to comment.