Skip to content

fix: correct the 'sed' chapter sample file #269

fix: correct the 'sed' chapter sample file

fix: correct the 'sed' chapter sample file #269

Workflow file for this run

name: Validate Pull Request
# This workflow verifies that the site will build for pull requests.
on: [pull_request]
jobs:
validate-pull-request:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Fixup Git URLs, see:
# https://stackoverflow.com/questions/70663523/the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
# Check typescript compiles properly.
- name: Check TypeScript
run: make typescript-check
# Run the build - this will fail if there are broken links etc.
- name: Build
run: make build
# Store the artifacts in case we want to validate samples etc.
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts
# See:
# https://github.com/marketplace/actions/deploy-pr-preview
deploy-preview:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: npm install --legacy-peer-deps && npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/