Replace .Site.IsServer with hugo.IsServer #70
Workflow file for this run
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: Fresh to vercel PR | |
on: | |
pull_request: | |
jobs: | |
createExampleAndDeployToArtifacts: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
hugo: ['0.120.0', '0.135.0', 'latest'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: ${{ matrix.hugo }} | |
extended: true | |
- name: Build with Hugo on PR | |
working-directory: exampleSite | |
run: | | |
hugo \ | |
--minify \ | |
--baseURL https://hugo-fresh-${{ github.event.pull_request.head.user.login }}-${{ github.event.pull_request.head.ref }}.vercel.app | |
- name: Save hugo as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: hugo-output | |
path: exampleSite/public/ | |
- name: Save alias domain | |
run: | | |
mkdir -p ./alias-domain | |
echo hugo-fresh-${{ github.event.pull_request.head.user.login }}-${{ github.event.pull_request.head.ref }}.vercel.app > ./alias-domain/alias-domain | |
- name: Save alias domain as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: alias-domain | |
path: alias-domain/ |