Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
runs-on: ubuntu-latest
container:
image: docker.io/psedoc/anyhttp:0.22
permissions:
contents: read
pages: write
id-token: write

steps:
- *checkout
Expand All @@ -90,9 +94,26 @@ jobs:
run: |
cmake --build build --target coverage

- name: Prepare Pages directory
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
run: |
mkdir -p pages/coverage
cp -r build/coverage_report/* pages/coverage/

- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: build/coverage_report/
retention-days: 30

- name: Upload coverage to GitHub Pages
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: pages/

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Overview
[![Build and run tests](https://github.com/pgit/anyhttp/actions/workflows/release.yml/badge.svg)](https://github.com/pgit/anyhttp/actions/workflows/release.yml)
[![Coverage](https://img.shields.io/badge/coverage-report-blue)](https://pgit.github.io/anyhttp/coverage/)

Low-level C++ HTTP client and server library, based on ASIO and its asynchronous model.

Expand Down