diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index 2e3f63a02..084966714 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -4,8 +4,10 @@ on: branches: - main -permissions: - contents: write +concurrency: + group: coverage-report-${{ github.ref }} + cancel-in-progress: false + jobs: coverage-report: runs-on: ubuntu-latest @@ -31,10 +33,22 @@ jobs: source: cov/json/index.json output: cov/html/coverage.svg jsonPath: total.statements.pct - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0 + - name: Upload GitHub Pages artifact 📦 + uses: actions/upload-pages-artifact@v5 with: - branch: gh-pages - folder: cov/html - clean-exclude: | - .nojekyll \ No newline at end of file + path: cov/html + + deploy-pages: + name: Deploy to GitHub Pages 🚀 + needs: coverage-report + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 \ No newline at end of file