From 752eac0ba30e6c0b5bbc464c7ac193bf03c41d1c Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 6 Jan 2025 10:56:05 -0600 Subject: [PATCH] add package site --- .github/workflows/github-pages.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000..81cf266 --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,32 @@ +name: Build and deploy package site + +on: + push: + branches: ["main"] + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v5 + - uses: r-lib/actions/setup-r@HEAD + with: + use-public-rspm: true + - uses: r-lib/actions/setup-r-dependencies@HEAD + - uses: yihui/litedown/site@HEAD + with: + site-dir: 'site' + - uses: actions/upload-pages-artifact@v3 + with: + path: 'site' + - id: deployment + uses: actions/deploy-pages@v4