Skip to content

Commit

Permalink
fix: Update deploy.py to capture .crt files
Browse files Browse the repository at this point in the history
Also added .pem to deploy.py and upload-driver-packages.yml since
.pem is another common extension for these types of files.
  • Loading branch information
dljsjr committed Oct 12, 2023
1 parent 7f8a507 commit 3c00ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload-driver-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Package the driver
working-directory: ${{ matrix.driver }}
run: |
zip -v ${{env.package_key}}.zip config.yml fingerprints.yml search-parameters.y*ml $(find . -name "*.crt") $(find profiles -name "*.y*ml") $(find . -name "*.lua") -x "*test*"
zip -v ${{env.package_key}}.zip config.yml fingerprints.yml search-parameters.y*ml $(find . -name "*.pem") $(find . -name "*.crt") $(find profiles -name "*.y*ml") $(find . -name "*.lua") -x "*test*"
- name: Upload packaged driver artifact
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion tools/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
retries = 0
while not os.path.exists(driver+".zip") and retries < 5:
try:
subprocess.run(["zip -r ../"+driver+".zip config.yml fingerprints.yml search-parameters.y*ml $(find profiles -name \"*.y*ml\") $(find . -name \"*.lua\") -x \"*test*\""], cwd=driver, shell=True, capture_output=True, check=True)
subprocess.run(["zip -r ../"+driver+".zip config.yml fingerprints.yml search-parameters.y*ml $(find . -name \"*.pem\") $(find . -name \"*.crt\") $(find profiles -name \"*.y*ml\") $(find . -name \"*.lua\") -x \"*test*\""], cwd=driver, shell=True, capture_output=True, check=True)
except subprocess.CalledProcessError as error:
print(error.stderr)
retries += 1
Expand Down

0 comments on commit 3c00ae5

Please sign in to comment.