Skip to content

Commit

Permalink
MAINT/DOC fix and refactor doc build workflow (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO authored Apr 16, 2024
1 parent 72383d5 commit 04170dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 53 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/doc-test.yaml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/doc-deploy.yaml → .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Deploy docs to GitHub Pages
name: Doc build and deploy

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand Down Expand Up @@ -51,7 +54,9 @@ jobs:
npm run build
- name: Copy Rust docs to build directory
run: cp -r src-tauri/target/doc website/build/rustdoc
run: |
rm -f src-tauri/target/doc/.lock
cp -r src-tauri/target/doc website/build/rustdoc
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -60,6 +65,7 @@ jobs:

deploy:
needs: build
if: github.event_name == 'push' # Do not deploy on PRs
permissions:
pages: write
id-token: write
Expand Down

0 comments on commit 04170dc

Please sign in to comment.