feat: add artifact unzipping step and update upload path in CI workflows
All checks were successful
CI / build-and-publish (push) Successful in 10s
All checks were successful
CI / build-and-publish (push) Successful in 10s
This commit is contained in:
@@ -49,11 +49,16 @@ jobs:
|
||||
- name: web-ext build
|
||||
run: npx web-ext build -s . -a dist --overwrite-dest
|
||||
|
||||
- name: Unzip build artifact
|
||||
run: |
|
||||
mkdir -p disst
|
||||
unzip -o dist/*.zip -d disst
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: web-ext-build
|
||||
path: dist/*.zip
|
||||
path: disst/**
|
||||
|
||||
- name: Publish to Mozilla Add-ons
|
||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
||||
|
||||
@@ -24,12 +24,17 @@ jobs:
|
||||
- name: web-ext build
|
||||
run: npx web-ext build -s . -a dist --overwrite-dest
|
||||
|
||||
- name: Unzip build artifact
|
||||
run: |
|
||||
mkdir -p disst
|
||||
unzip -o dist/*.zip -d disst
|
||||
|
||||
- name: Upload build artifact
|
||||
# v4+ not supported on Gitea Actions/Forgejo, use v3 for compatibility
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: web-ext-build
|
||||
path: dist/*.zip
|
||||
path: disst/**
|
||||
|
||||
- name: Push changes
|
||||
if: github.event_name == 'push'
|
||||
|
||||
Reference in New Issue
Block a user