Skip to content

Commit d60e6f9

Browse files
committed
fix(.github): remove github pages
1 parent 6964a83 commit d60e6f9

1 file changed

Lines changed: 11 additions & 36 deletions

File tree

.github/workflows/rust.yml

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,20 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111

12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
17-
concurrency:
18-
group: "pages"
19-
cancel-in-progress: false
20-
2112
jobs:
2213
build:
2314
runs-on: ubuntu-latest
2415
steps:
2516
- uses: actions/checkout@v4
17+
2618
- name: Run tests
27-
run: cargo test --workspace --verbose
28-
docs:
29-
# main only
30-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
31-
runs-on: ubuntu-latest
32-
needs: build
33-
steps:
34-
- uses: actions/checkout@v4
35-
- name: Build docs
36-
run: cargo doc --no-deps --all-features --workspace
37-
- name: Add redirect
38-
run: echo '<html><head><meta http-equiv="refresh" content="0; URL=./twamp_rs" /></head></html>' > target/doc/index.html
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v3
41-
with:
42-
path: ./target/doc
43-
deploy:
44-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
45-
environment:
46-
name: github-pages
47-
url: ${{ steps.deployment.output.page_url }}
48-
runs-on: ubuntu-latest
49-
needs: docs
50-
steps:
51-
- name: Deploy to Github Pages
52-
id: deployment
53-
uses: actions/deploy-pages@v4
19+
run: cargo test --verbose --all-targets
20+
21+
- name: Run doc tests
22+
run: cargo test --doc
23+
24+
- name: Build project
25+
run: cargo build --release
26+
27+
- name: Build examples
28+
run: cargo build --release --examples

0 commit comments

Comments
 (0)