Skip to content

Commit

Permalink
Add GH docs publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Aug 1, 2024
1 parent 74a39ef commit 3b5a83a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Deploy API docs

on:
push:
# release:
# types: [published]
# workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: paritytech/ci-unified:bullseye-1.74.0
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install and Build
run: RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps --locked


- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/api # The folder the action should deploy to.

0 comments on commit 3b5a83a

Please sign in to comment.