mirror of
https://github.com/transistorfet/moa.git
synced 2024-06-09 01:29:32 +00:00
36 lines
805 B
YAML
36 lines
805 B
YAML
name: deploy-docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
|
|
|
|
- name: Build docs
|
|
run: cargo doc --document-private-items --workspace
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: target/doc
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v1
|