Skip to content

Commit d1d677e

Browse files
committed
chore(.github): cleanups
1 parent 355510b commit d1d677e

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/rust.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,26 @@ concurrency:
2020

2121
jobs:
2222
build:
23-
2423
runs-on: ubuntu-latest
25-
2624
steps:
2725
- uses: actions/checkout@v4
2826
- name: Run tests
2927
run: cargo test --workspace --verbose
30-
3128
docs:
3229
# main only
3330
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3431
runs-on: ubuntu-latest
3532
needs: build
3633
steps:
3734
- uses: actions/checkout@v4
38-
39-
- name: Check Rust version
40-
run: rustc --version
41-
4235
- name: Build docs
43-
run: cargo doc --no-deps --workspace --verbose
44-
36+
run: cargo doc --no-deps --all-features --workspace
4537
- name: Add redirect
46-
run: echo '<meta http-equiv="refresh" content="0;url=twamp_rs/index.html">' > target/doc/index.html
47-
38+
run: echo '<html><head><meta http-equiv="refresh" content="0; URL=./twamp_rs" /></head></html>' > target/doc/index.html
4839
- name: Upload artifact
4940
uses: actions/upload-pages-artifact@v3
5041
with:
5142
path: ./target/doc
52-
5343
deploy:
5444
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5545
environment:

0 commit comments

Comments
 (0)