Skip to content

Merge branch 'main' into varchar #6955

Merge branch 'main' into varchar

Merge branch 'main' into varchar #6955

Workflow file for this run

name: "Lost Pixel"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Lost Pixel
steps:
- uses: actions/checkout@v4
- name: Get all changed markdown files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: content/**/*.{md,mdx}
- name: Output relevant files
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.any_changed }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
if [ ${CHANGED_FILES} == 'true' ]; then
declare -a linksArray
linksArray=(`echo ${ALL_CHANGED_FILES}`)
for link in "${linksArray[@]}"; do
echo "$link"
done
else
echo "No files changed."
fi
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install deps
run: npm install
- name: Build docs
env:
DOCUSAURUS_POST_HOG_KEY: ${{ secrets.DOCUSAURUS_POST_HOG_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
GT_CONTAINER_ID: ${{ secrets.GT_CONTAINER_ID }}
run: npm run clean && npm run build
- name: Start docs
run: npm run serve &
- name: Generate sitemap
run: npx lost-pixel page-sitemap-gen http://172.17.0.1:3000/sitemap.xml "./lost-pixel-pages.json"
- name: Edit page names
run: sed -i -e 's/_/\//g' -e 's|prisma\.io||g' -re 's/(name.+)(\/)(\")/\1-\3/g' lost-pixel-pages.json
- name: Lost Pixel
uses: lost-pixel/[email protected]
env:
LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}