Skip to content

Commit

Permalink
Add CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
linnil1 committed Mar 15, 2021
1 parent 343aa03 commit 1968a87
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Package the extension

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: "web-ext lint"
id: web-ext-lint
uses: kewisch/action-web-ext@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: lint
source: src
channel: unlisted

- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: src

- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: unlisted
apiKey: ${{ secrets.AMO_SIGN_KEY }}
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
timeout: 900000

- name: "Create Release"
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: latest
tag_name: latest
files: |
${{ steps.web-ext-sign.outputs.target }}
${{ steps.web-ext-build.outputs.target }}
7 changes: 6 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "taiwanv-holotools",
"description": "Open youtube links via holotools",
"manifest_version": 2,
"version": "1.0",
"version": "1.0.8",
"homepage_url": "https://github.com/linnil1/taiwanv-holotools",
"permissions": [
"activeTab"
Expand All @@ -14,5 +14,10 @@
"default_icon": "images/linnil1.png",
"default_title": "taiwanv-holotools",
"default_popup": "yt_list.html"
},
"browser_specific_settings": {
"gecko": {
"id": "{dec5367e-26e6-4d28-b55f-b52fd91fccc5}"
}
}
}

0 comments on commit 1968a87

Please sign in to comment.