Skip to content

Prepare the blog

Prepare the blog #5

Workflow file for this run

on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: 'Checkout'
uses: actions/checkout@main
- run: touch .nojekyll
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run abridge
- name: 'Build only'
uses: shalzz/[email protected]
env:
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_ONLY: true
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: 'Checkout'
uses: actions/checkout@main
- run: touch .nojekyll
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run abridge
- name: 'Build and deploy'
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}