Updated actions

This commit is contained in:
transistor 2023-04-30 22:10:49 -07:00
parent da79afe20b
commit e13d67abf4

View File

@ -10,6 +10,9 @@ permissions:
jobs: jobs:
build-docs: build-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
@ -17,15 +20,15 @@ jobs:
toolchain: stable toolchain: stable
- name: Install dependencies - name: Install dependencies
run: apt-get install -y alsa run: sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Build docs - name: Build docs
run: cargo doc --document-private-items --workspace && mv target/doc . run: cargo doc --document-private-items --workspace
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
path: path: target/doc
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment