Skip to content

Update runner dep (#34) #40

Update runner dep (#34)

Update runner dep (#34) #40

Workflow file for this run

name: Deploy Rust Docs to GitHub Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Add SSH key setup
- name: Install SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.EI_RUNNER_DEPLOY_KEY }}
# Configure git to use SSH instead of HTTPS
- name: Configure Git
run: |
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"
- name: Install GStreamer dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libcairo2-dev \
libpango1.0-dev
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Documentation
run: cargo doc --no-default-features --features eim --no-deps
- name: Add index.html redirect
run: |
echo '<meta http-equiv="refresh" content="0; url=gstedgeimpulse">' > target/doc/index.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
jekyll: false
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4