Skip to content

Commit

Permalink
Adding a page-preview using a personalized artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 28, 2024
1 parent 9e7c322 commit 19c8325
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
container: rocker/tidyverse:4.4.0
needs: build

permissions:
pull-requests: write
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -100,10 +104,17 @@ jobs:
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
id: upload
with:
name: github-pages
path: _website/

- name: Post preview
uses: gvegayon/actions/post-artifact
with:
artifact-id: ${{ steps.upload.outputs.artifact_id }}
artifact-name: 'pkgdown website'

deploy:
# Deploy to the github-pages environment
# but not on PRs
Expand Down

0 comments on commit 19c8325

Please sign in to comment.