Skip to content

Commit

Permalink
Update CI biulds on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa authored Oct 14, 2024
1 parent 477b196 commit 2012e05
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/fresh-to-vercel-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
pull_request:

jobs:
createExampleAndDeployToArtifacts:
testBuild:
runs-on: ubuntu-latest
strategy:
matrix:
hugo: ['0.120.0', '0.135.0', 'latest']

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,6 +20,23 @@ jobs:
hugo-version: ${{ matrix.hugo }}
extended: true

- name: Build with Hugo on PR
working-directory: exampleSite
run: hugo --minify

createExampleAndDeployToArtifacts:
runs-on: ubuntu-latest
needs: [testBuild]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true

- name: Build with Hugo on PR
working-directory: exampleSite
run: |
Expand All @@ -41,4 +59,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: alias-domain
path: alias-domain/
path: alias-domain/

0 comments on commit 2012e05

Please sign in to comment.