diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-01 19:02:16 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-01 21:26:37 +0800 |
| commit | d2f80c314911e395d92ee16b8003d230f4846bf3 (patch) | |
| tree | 3e7caa1ec5ca549f83e81ca46cb0ab638b01c15e /.github/workflows/docs.yml | |
| parent | c13ad48dd3efa67250b7285026f2ad989bf631f3 (diff) | |
init: ci
Diffstat (limited to '.github/workflows/docs.yml')
| -rw-r--r-- | .github/workflows/docs.yml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..ce77f78 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,58 @@ +# .github/workflows/docs.yml +name: Docs +on: + push: + branches: [main] +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: deploy + cancel-in-progress: false +jobs: + build: + name: Build + runs-on: ubuntu-latest + defaults: + run: + working-directory: qml_plugin + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup | Qt + run: | + sudo apt-get update + sudo apt-get install -y qt6-base-dev qt6-declarative-dev + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + - name: Configure cache + uses: Swatinem/rust-cache@v2 + with: + workspaces: qml_plugin + - name: Setup pages + id: pages + uses: actions/configure-pages@v5 + - name: Clean docs folder + run: cargo clean --doc + - name: Build docs + run: cargo doc --no-deps + - name: Add redirect + run: echo '<meta http-equiv="refresh" content="0;url=qml_plugin/index.html">' > target/doc/index.html + - name: Remove lock file + run: rm target/doc/.lock + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: qml_plugin/target/doc + deploy: + name: Deploy + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 |
