Skip to content

Commit

Permalink
encrypt & upload ourselves instead of using other action
Browse files Browse the repository at this point in the history
- had too much nesting
- decrypt didn't work on mac
- on ubuntu it was annoying too
  • Loading branch information
sidvishnoi committed Sep 13, 2024
1 parent b6092cc commit ed3e0c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/nightly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,18 @@ jobs:
CONNECT_PUBLIC_KEY: ${{ secrets.E2E_CONNECT_PUBLIC_KEY }}
CONNECT_PRIVATE_KEY: ${{ secrets.E2E_CONNECT_PRIVATE_KEY }}

- uses: AlexGidarakos/upload-encrypted-artifact@f682a88346288edaf376ab27f0f1a36573b962ea
- name: Encrypt report
shell: bash
working-directory: tests/e2e/playwright-report
run: |
zip -r -P ${{ secrets.E2E_PLAYWRIGHT_REPORT_PASSWORD }} ../playwright-report.zip *
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
remote-name: playwright-report-${{ matrix.project }}
source: tests/e2e/playwright-report/
password: ${{ secrets.E2E_PLAYWRIGHT_REPORT_PASSWORD }}
name: playwright-report-${{ matrix.project }}
path: tests/e2e/playwright-report.zip
retention-days: 3

build-nightly:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ jobs:
CONNECT_PUBLIC_KEY: ${{ secrets.E2E_CONNECT_PUBLIC_KEY }}
CONNECT_PRIVATE_KEY: ${{ secrets.E2E_CONNECT_PRIVATE_KEY }}

- uses: AlexGidarakos/upload-encrypted-artifact@f682a88346288edaf376ab27f0f1a36573b962ea
- name: Encrypt report
shell: bash
working-directory: tests/e2e/playwright-report
run: |
zip -r -P ${{ secrets.E2E_PLAYWRIGHT_REPORT_PASSWORD }} ../playwright-report.zip *
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
remote-name: playwright-report-${{ matrix.project }}
source: tests/e2e/playwright-report/
password: ${{ secrets.E2E_PLAYWRIGHT_REPORT_PASSWORD }}
name: playwright-report-${{ matrix.project }}
path: tests/e2e/playwright-report.zip
retention-days: 3

0 comments on commit ed3e0c3

Please sign in to comment.