Skip to content

Commit

Permalink
chore: add github workflow to test and deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrachrome committed Oct 21, 2023
1 parent 9184fbd commit cbcc2a1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Build Documentation
run: cargo doc --no-deps

- name: Publish Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc

0 comments on commit cbcc2a1

Please sign in to comment.