Package Website (GitHub Pages) #49
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
name: Package Website (GitHub Pages) | |
on: | |
workflow_run: | |
workflows: [ "Make Project" ] | |
types: | |
- completed | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ijapesigan/docs | |
# Only restrict concurrency for non-PR jobs | |
concurrency: | |
group: pkgdown-gh-pages-${{ github.event_name != 'pull_request' || github.run_id }} | |
env: | |
GITHUB_PAT: ${{ secrets.PAT }} | |
permissions: | |
contents: write | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Build Project | |
run: make build | |
- | |
name: Build pkgdown Site | |
run: make pkgdown | |
- | |
name: Add .nojekyll | |
run: touch pkgdown/.nojekyll | |
- | |
name: Deploy to GitHub pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
clean: true | |
branch: pkgdown | |
folder: pkgdown |