File tree 6 files changed +49
-9
lines changed
6 files changed +49
-9
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,18 @@ name: Docker
7
7
8
8
on :
9
9
push :
10
- branches : [ "main" ]
10
+ branches : ["main"]
11
11
# Publish semver tags as releases.
12
- tags : [ ' v*.*.*' ]
12
+ tags : [" v*.*.*" ]
13
13
14
14
env :
15
15
# Use docker.io for Docker Hub if empty
16
16
REGISTRY : ghcr.io
17
17
# github.repository as <account>/<repo>
18
18
IMAGE_NAME : ${{ github.repository }}/backend
19
19
20
-
21
20
jobs :
22
21
build :
23
-
24
22
runs-on : ubuntu-latest
25
23
permissions :
26
24
contents : read
38
36
- name : Install cosign
39
37
uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
40
38
with :
41
- cosign-release : ' v2.2.4'
39
+ cosign-release : " v2.2.4"
42
40
43
41
# Set up BuildKit Docker container builder to be able to build
44
42
# multi-platform images and export cache
Original file line number Diff line number Diff line change
1
+ name : build and release extension
2
+ on :
3
+ push :
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-22.04
8
+ permissions :
9
+ contents : write
10
+ packages : write
11
+ strategy :
12
+ matrix :
13
+ node-version : [20]
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v4
18
+ with :
19
+ version : 9
20
+ - name : Use Node.js ${{ matrix.node-version }}
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ${{ matrix.node-version }}
24
+ cache : " pnpm"
25
+ cache-dependency-path : " chromium/socratic-code/pnpm-lock.yaml"
26
+ - name : Install dependencies
27
+ working-directory : ./chromium/socratic-code
28
+ run : pnpm install
29
+ - name : Build
30
+ working-directory : ./chromium/socratic-code
31
+ run : pnpm build
32
+ - name : Zip folder
33
+ working-directory : ./chromium/socratic-code
34
+ run : zip -r socratic-code.zip build
35
+ - name : Release
36
+ uses : softprops/action-gh-release@v2
37
+ with :
38
+ token : ${{ secrets.GITHUB_TOKEN }}
39
+ tag_name : " v1.0.0"
40
+ prerelease : false
41
+ draft : false
42
+ generate_release_notes : false
43
+ files : ./chromium/socratic-code/socratic-code.zip
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- // place files you want to import through the `$lib` alias in this folder.
1
+ export const PUBLIC_BACKEND_URL = 'https://socratic-leetcode-875479114962.asia-south1.run.app' ;
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
+ import { PUBLIC_BACKEND_URL } from ' $lib' ;
2
3
import { onMount } from ' svelte' ;
3
- import { PUBLIC_BACKEND_URL } from ' $env/static/public' ;
4
4
5
5
let content: string = ' ' ;
6
6
Original file line number Diff line number Diff line change 2
2
"manifest_version" : 3 ,
3
3
"name" : " Socratic Code" ,
4
4
"description" : " A browser extension made with Svelte Kit" ,
5
- "version" : " 0.0.1 " ,
5
+ "version" : " 0.1.0 " ,
6
6
"icons" : {
7
7
"32" : " socrates_32.png" ,
8
8
"64" : " socrates_64.png" ,
You can’t perform that action at this time.
0 commit comments