Skip to content

Commit

Permalink
Upload to chrome and firefox on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ttoino committed Sep 23, 2023
1 parent 04b4697 commit c3c228d
Showing 1 changed file with 37 additions and 39 deletions.
76 changes: 37 additions & 39 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CD
on:
release:
types: ["published"]
pull_request:
branches: [main, develop]

jobs:
build:
Expand Down Expand Up @@ -52,20 +50,18 @@ jobs:
uses: actions/download-artifact@v2
with:
name: chrome
- run: ls -R
# - name: Upload to Chrome Web Store
# run: npx chrome-webstore-upload-cli upload --auto-publish
- name: Upload to Chrome Web Store
run: npx chrome-webstore-upload-cli upload --auto-publish

edge:
name: Deploy to Edge
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: chrome
- run: ls -R
# edge:
# name: Deploy to Edge
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: chrome

firefox:
name: Deploy to Firefox
Expand All @@ -79,29 +75,31 @@ jobs:
uses: actions/download-artifact@v2
with:
name: firefox
- run: ls -R
# - name: Sign add-on
# working-directory: bundle/firefox
# run: npx web-ext sign --api-key $API_KEY --api-secret $API_SECRET

opera:
name: Deploy to Opera
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
- name: Sign add-on
run: npx web-ext sign --api-key $API_KEY --api-secret $API_SECRET
- name: Upload signed add-on
uses: actions/upload-artifact@v2
with:
name: chrome
- run: ls -R
path: web-ext-artifacts
name: firefox-signed

safari:
name: Deploy to Safari
runs-on: macos-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: safari
- run: ls -R
# opera:
# name: Deploy to Opera
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: chrome

# safari:
# name: Deploy to Safari
# runs-on: macos-latest
# needs: build
# steps:
# - name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: safari
# - run: ls -R

0 comments on commit c3c228d

Please sign in to comment.