fix rsync
This commit is contained in:
1 parent
2f5568fb37
commit
e88fb193df
1 file changed
+36
-22
@@ -57,17 +57,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare Firefox source
|
- name: Prepare Firefox source
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/firefox-source
|
python - <<'PY'
|
||||||
rsync -a \
|
from pathlib import Path
|
||||||
--exclude '.git/' \
|
import shutil
|
||||||
--exclude '.github/' \
|
source = Path('.')
|
||||||
--exclude 'web-ext-artifacts/' \
|
target = Path('dist/firefox-source')
|
||||||
--exclude 'manifest.chrome.json' \
|
excluded = {'.git', '.github', 'dist', 'web-ext-artifacts', 'scripts',
|
||||||
--exclude 'background-chrome.js' \
|
'manifest.chrome.json', 'background-chrome.js',
|
||||||
--exclude 'background-service-worker.js' \
|
'background-service-worker.js', 'browser-api.js'}
|
||||||
--exclude 'browser-api.js' \
|
target.mkdir(parents=True, exist_ok=True)
|
||||||
--exclude 'scripts/' \
|
for item in source.iterdir():
|
||||||
./ dist/firefox-source/
|
if item.name in excluded:
|
||||||
|
continue
|
||||||
|
destination = target / item.name
|
||||||
|
if item.is_dir():
|
||||||
|
shutil.copytree(item, destination, dirs_exist_ok=True)
|
||||||
|
else:
|
||||||
|
shutil.copy2(item, destination)
|
||||||
|
PY
|
||||||
|
|
||||||
- name: Build Firefox package
|
- name: Build Firefox package
|
||||||
run: |
|
run: |
|
||||||
@@ -124,17 +131,24 @@ jobs:
|
|||||||
- name: Set up Firefox signing tools
|
- name: Set up Firefox signing tools
|
||||||
run: |
|
run: |
|
||||||
npm install --global web-ext
|
npm install --global web-ext
|
||||||
mkdir -p dist/firefox-source
|
python - <<'PY'
|
||||||
rsync -a \
|
from pathlib import Path
|
||||||
--exclude '.git/' \
|
import shutil
|
||||||
--exclude '.github/' \
|
source = Path('.')
|
||||||
--exclude 'web-ext-artifacts/' \
|
target = Path('dist/firefox-source')
|
||||||
--exclude 'manifest.chrome.json' \
|
excluded = {'.git', '.github', 'dist', 'web-ext-artifacts', 'scripts',
|
||||||
--exclude 'background-chrome.js' \
|
'manifest.chrome.json', 'background-chrome.js',
|
||||||
--exclude 'background-service-worker.js' \
|
'background-service-worker.js', 'browser-api.js'}
|
||||||
--exclude 'browser-api.js' \
|
target.mkdir(parents=True, exist_ok=True)
|
||||||
--exclude 'scripts/' \
|
for item in source.iterdir():
|
||||||
./ dist/firefox-source/
|
if item.name in excluded:
|
||||||
|
continue
|
||||||
|
destination = target / item.name
|
||||||
|
if item.is_dir():
|
||||||
|
shutil.copytree(item, destination, dirs_exist_ok=True)
|
||||||
|
else:
|
||||||
|
shutil.copy2(item, destination)
|
||||||
|
PY
|
||||||
|
|
||||||
- name: Sign and submit Firefox package to AMO
|
- name: Sign and submit Firefox package to AMO
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user