Skip to content

Commit

Permalink
Upload report to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 28, 2022
1 parent 730d775 commit ba095ed
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,32 @@ jobs:
name: 'coverage-report'
path: 'covrep'

upload-coverage-report:
needs: create-coverage-report
runs-on: ubuntu-latest

steps:
- name: Download coverage report artifact
uses: actions/download-artifact@v3
with:
name: coverage-report
path: coverage-report

- name: Write run metadata to file
run: |
currentDate=`date`
echo "Report automatically uploaded by GitHub at $currentDate" > coverage-report/report-information.txt
- name: Upload report to GitHub Pages
uses: cpina/github-action-push-to-another-repository@v1.4.2

env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: "."
destination-github-username: "hydephp"
destination-repository-name: "developer-tools"
target-branch: gh-pages

#create-php-docs:
# runs-on: ubuntu-latest

0 comments on commit ba095ed

Please sign in to comment.