forked from CeleritasCelery/rune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove netlify.toml and add CI publish-docs action
- Loading branch information
Showing
2 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.