Skip to content

Commit

Permalink
Enabled AMO auto upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Buck committed Dec 20, 2019
1 parent 6523494 commit bcc1884
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 2,939 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,4 @@ jobs:
CI: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
with:
args: npm run e2e
- run: npm run package
if: startsWith(github.ref, 'refs/tags/')
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "out/*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: 'npm run release'
if: startsWith(github.ref, 'refs/tags/')
env:
CLIENT_ID: ${{ secrets.PUBLISHER_CHROME_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.PUBLISHER_CHROME_CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.PUBLISHER_CHROME_REFRESH_TOKEN }}
EXTENSION_ID: 'jlmafbaeoofdegohdhinkhilhclaklkp'
args: npm run e2e
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm ci
- run: npm run build
- run: 'npm run release'
if: startsWith(github.ref, 'refs/tags/')
env:
CLIENT_ID: ${{ secrets.PUBLISHER_CHROME_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.PUBLISHER_CHROME_CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.PUBLISHER_CHROME_REFRESH_TOKEN }}
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
EXTENSION_ID: 'jlmafbaeoofdegohdhinkhilhclaklkp'
Loading

0 comments on commit bcc1884

Please sign in to comment.