Skip to content

Commit 9a206e4

Browse files
committed
docs: add github pages job
Signed-off-by: Alexander Mohr <[email protected]>
1 parent cce511a commit 9a206e4

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

.github/workflows/generate_documentation.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
permissions:
2424
contents: write
2525
actions: write
26+
pages: write
27+
id-token: write
2628

2729
jobs:
2830
build_documentation:
@@ -42,7 +44,12 @@ jobs:
4244
- name: Build documentation
4345
run: cargo doc --no-deps --all-features
4446
- name: Add index redirect
45-
run: echo '<meta http-equiv="refresh" content="0; url=dlt_tracing_appender">' > target/doc/index.html
47+
run: echo '<meta http-equiv="refresh" content="0; url=tracing_dlt">' > target/doc/index.html
48+
- name: Upload artifact for GitHub Pages
49+
#if: github.ref == 'refs/heads/main'
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: target/doc
4653
- name: Create docs archive
4754
if: startsWith(github.ref, 'refs/tags/')
4855
run: |
@@ -53,3 +60,15 @@ jobs:
5360
uses: softprops/action-gh-release@v1
5461
with:
5562
files: rustdoc.tar.gz
63+
64+
deploy_pages:
65+
#if: github.ref == 'refs/heads/main'
66+
needs: build_documentation
67+
runs-on: ubuntu-latest
68+
environment:
69+
name: github-pages
70+
url: ${{ steps.deployment.outputs.page_url }}
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[workspace.package]
1313
edition = "2024"
1414
license = "Apache-2.0"
15-
homepage = "https://github.com/eclipse-opensovd/classic-diagnostic-adapter"
15+
homepage = "https://github.com/eclipse-opensovd/dlt-tracing-lib"
1616

1717
[workspace]
1818
resolver = "3"

dlt-rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name = "dlt-rs"
1414
version = "0.1.0"
1515
edition.workspace = true
16-
publish = false
16+
publish = true
1717
description = "Safe and idiomatic Rust wrapper for the C library libdlt to provide DLT logging capabilities for Rust applications"
1818
homepage.workspace = true
1919
license.workspace = true

dlt-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
name = "dlt-sys"
1414
version = "0.1.0"
1515
edition.workspace = true
16-
publish = false
17-
description = "Wrapper around the C library libdlt to provide DLT logging capabilities for Rust applications"
16+
publish = true
17+
description = "FFI bindings to libdlt"
1818
homepage.workspace = true
1919
license.workspace = true
2020

tracing-dlt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name = "tracing-dlt"
1414
version = "0.1.0"
1515
edition.workspace = true
16-
publish = false
16+
publish = true
1717
description = "DLT log sink for "
1818
homepage.workspace = true
1919
license.workspace = true

0 commit comments

Comments
 (0)