Skip to content

Commit

Permalink
change deploying after root directory preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshsadhwani99 committed Aug 12, 2024
1 parent 2e18692 commit 21053b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:
working-directory: ./web
run: npm run test:coverage

- name: Prepare Report Directory
run: |
mkdir -p ./public/reports/frontend
mv ./web/reports/test-report.html ./public/reports/frontend/
mv ./web/coverage/lcov-report/* ./public/reports/frontend/
# Deploy reports to GitHub Pages
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public/reports

- name: Prepare Report Directory
run: |
mkdir -p ./public/reports/frontend
mv ./web/reports/test-report.html ./public/reports/frontend/
mv ./web/coverage/lcov-report/* ./public/reports/frontend/

0 comments on commit 21053b3

Please sign in to comment.