Skip to content

Commit

Permalink
Remove netlify.toml and add CI publish-docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
Qkessler committed Dec 16, 2023
1 parent c76a504 commit c2bbf07
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 15 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Deploy to Netlify
on:
push:
branches: [docs]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install the required system libraries
run: sudo apt-get -y install libpango1.0-dev libgtk-3-dev
# run docs generation on nightly rather than stable. This enables features like
# https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html which allows an
# API be documented as only available in some specific platforms.
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo doc
run: cargo +nightly doc --no-deps --all-features
env:
RUSTDOCFLAGS: |
-D warnings \
--force-warn rustdoc::redundant-explicit-links \
--force-warn renamed-and-removed-lints \
--cfg docsrs
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
with:
publish-dir: "./target/doc"
production-branch: docs
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
15 changes: 0 additions & 15 deletions netlify.toml

This file was deleted.

0 comments on commit c2bbf07

Please sign in to comment.