Skip to content

Commit

Permalink
Use multiple artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttoino committed Sep 23, 2023
1 parent 8d4701c commit 04b4697
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build
run: yarn release
- name: Upload artifact
- name: Upload chrome artifact
uses: actions/upload-artifact@v2
with:
path: bundle
name: bundle
path: bundle/chrome
name: chrome
- name: Upload firefox artifact
uses: actions/upload-artifact@v2
with:
path: bundle/firefox
name: firefox
- name: Upload safari artifact
uses: actions/upload-artifact@v2
with:
path: bundle/safari
name: safari

chrome:
name: Deploy to Chrome
Expand All @@ -41,10 +51,9 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bundle
name: chrome
- run: ls -R
# - name: Upload to Chrome Web Store
# working-directory: bundle/chrome
# run: npx chrome-webstore-upload-cli upload --auto-publish

edge:
Expand All @@ -55,7 +64,8 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bundle
name: chrome
- run: ls -R

firefox:
name: Deploy to Firefox
Expand All @@ -68,7 +78,8 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bundle
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
Expand All @@ -81,7 +92,8 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bundle
name: chrome
- run: ls -R

safari:
name: Deploy to Safari
Expand All @@ -91,4 +103,5 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bundle
name: safari
- run: ls -R

0 comments on commit 04b4697

Please sign in to comment.