diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0cbceff..a20716a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,13 +2,13 @@ name: CI -# Controls when the action will run. +# Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -29,15 +29,15 @@ jobs: uses: actions/setup-node@v2.1.4 with: node-version: 12.x - + # Install deps - run: yarn --frozen-lockfile - + # Build - run: yarn run build:prod - + # Upload artifact - - run: mkdir pkg && cp manifest.json pkg && cp -r build pkg && cp -r css pkg + - run: mkdir pkg && cp manifest.json pkg && cp -r build pkg && cp -r static pkg - uses: actions/upload-artifact@v2 with: name: watch-and-learn diff --git a/.gitignore b/.gitignore index dd795b2..0004049 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,4 @@ dist .tern-port /build +/pkg \ No newline at end of file diff --git a/manifest.json b/manifest.json index 910ac52..e025c73 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,9 @@ { "name": "Watch and Learn", "version": "1.0", + "icons": { + "128": "static/icon128.png" + }, "description": "A chrome extension to make learn videos better using video.js", "manifest_version": 2, "content_scripts": [ @@ -12,7 +15,7 @@ "build/main.js" ], "css": [ - "css/video-js.css" + "static/video-js.css" ] } ] diff --git a/128.png b/static/icon128.png similarity index 100% rename from 128.png rename to static/icon128.png diff --git a/css/video-js.css b/static/video-js.css similarity index 100% rename from css/video-js.css rename to static/video-js.css