Skip to content

Commit

Permalink
chkpt
Browse files Browse the repository at this point in the history
  • Loading branch information
xand6r committed Dec 2, 2024
1 parent 6b56a56 commit 00e0827
Show file tree
Hide file tree
Showing 49 changed files with 7,395 additions and 6,295 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Deploy Rust App

on:
push:
branches:
- feature/test-gh-pages # Trigger on pushes to the 'main' branch

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Set up Rust
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable # Use the stable Rust toolchain
override: true

# Step 3: Run the build script
- name: Run build script
run: |
cd docs
chmod +x generatedocs.sh # Make the script executable, if it isn't already
bash generatedocs.sh # Execute the script
# Step 4: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs # Specify the output directory created by your script
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ dist
packages/host-node/fixtures/*.data.json

# rust build
target
target

# generated docs
docs/packages
docs/index.html
10 changes: 0 additions & 10 deletions .vscode/settings.json

This file was deleted.

Loading

0 comments on commit 00e0827

Please sign in to comment.