Skip to content

Commit

Permalink
Separate repo assets and static files
Browse files Browse the repository at this point in the history
  • Loading branch information
9at8 committed Jan 31, 2021
1 parent ea3b1ab commit 97bfc8c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -29,15 +29,15 @@ jobs:
uses: actions/[email protected]
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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ dist
.tern-port

/build
/pkg
5 changes: 4 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -12,7 +15,7 @@
"build/main.js"
],
"css": [
"css/video-js.css"
"static/video-js.css"
]
}
]
Expand Down
File renamed without changes
File renamed without changes.

0 comments on commit 97bfc8c

Please sign in to comment.