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

Commit

Permalink
fix: change layer uri
Browse files Browse the repository at this point in the history
  • Loading branch information
imaegoo committed Jul 21, 2022
1 parent 7fdc86e commit c456a6a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish

on:
release:
types: [created]
workflow_dispatch:

jobs:
publish-serverless-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: cd src/ && sh ./build.sh
- run: npm i -g @serverless-devs/s
- run: s cli registry login --token ${{ secrets.ALIBABA_REGISTRY_PUBLISH_TOKEN }}
- run: s cli registry publish
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# IntelliJ IDEA on web, but serverless

[![Package type](http://editor.devsapp.cn/icon?package=idea-webide&type=packageType)](https://www.serverless-devs.com)
[![Package version](http://editor.devsapp.cn/icon?package=idea-webide&type=packageVersion)](http://www.devsapp.cn/details.html?name=idea-webide)
[![Package download](http://editor.devsapp.cn/icon?package=idea-webide&type=packageDownload)](http://www.devsapp.cn/details.html?name=idea-webide)
[![Package type](https://editor.devsapp.cn/icon?package=idea-webide&type=packageType)](https://www.serverless-devs.com)
[![Package version](https://editor.devsapp.cn/icon?package=idea-webide&type=packageVersion)](https://www.devsapp.cn/details.html?name=idea-webide)
[![Package download](https://editor.devsapp.cn/icon?package=idea-webide&type=packageDownload)](https://www.devsapp.cn/details.html?name=idea-webide)

## 应用背景

Expand Down
4 changes: 0 additions & 4 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ mv ../ide-server/plugins ../ide-plugins
echo "deleting temp folder"
cd ..
rm -rf .temp
echo "publishing layers"
s cli fc layer publish --layer-name ide-jbr --code ./ide-jbr --region cn-hangzhou
s cli fc layer publish --layer-name ide-lib --code ./ide-lib --region cn-hangzhou
s cli fc layer publish --layer-name ide-plugins --code ./ide-plugins --region cn-hangzhou
6 changes: 3 additions & 3 deletions src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ services:
- plugin: layer-fc
args:
name: ide-jbr
codeUri: "https://github.com/imaegoo/idea-serverless/releases/download/0.0.1/ide-jbr.zip"
codeUri: ./ide-jbr
runtime:
- custom
- plugin: layer-fc
args:
name: ide-lib
codeUri: "https://github.com/imaegoo/idea-serverless/releases/download/0.0.1/ide-lib.zip"
codeUri: ./ide-lib
runtime:
- custom
- plugin: layer-fc
args:
name: ide-plugins
codeUri: "https://github.com/imaegoo/idea-serverless/releases/download/0.0.1/ide-plugins.zip"
codeUri: ./ide-plugins
runtime:
- custom
props:
Expand Down

0 comments on commit c456a6a

Please sign in to comment.