Skip to content

[Automated] Update academy-theme to v0.2.7 #314

[Automated] Update academy-theme to v0.2.7

[Automated] Update academy-theme to v0.2.7 #314

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
pull_request:
branches: [ "master" ]
pull_request_target:
branches: [ "master" ]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pull-requests: write
concurrency:
group: "pages-${{ github.event.pull_request.number || github.run_id }}"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: pr-preview-${{ github.event.pull_request.number || github.run_id }}
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Hugo (Extended)
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.147.9'
extended: true
- name: Install dependencies
run: make setup
- name: Build Academy
run: make build-preview BASEURL=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview-${{ github.event.pull_request.number || github.run_id }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload just the public folder
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Comment Preview URL on PR
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
🚀 **Preview deployment for PR #${{ github.event.pull_request.number }}**
🌐 PR URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview-${{ github.event.pull_request.number || github.run_id }}
> 📖 General Preview: ${{ steps.deployment.outputs.page_url }}
This preview will be updated automatically when you push new commits to this PR.