Skip to content

Release catchup

Release catchup #6

name: Build PR Preview
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Build with Zola
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
BUILD_FLAGS: --base-url http://br-www-docs.s3-website-us-east-1.amazonaws.com/preview/cockpit/${{ github.event.number }}
- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pr-preview
path: |
pr/
public/