Skip to content

Merge pull request #1835 from mashehu/add-static-build-gha #1

Merge pull request #1835 from mashehu/add-static-build-gha

Merge pull request #1835 from mashehu/add-static-build-gha #1

name: build md cache
on:
push:
branches:
- netlfiy-test
- astro
workflow_dispatch:
jobs:
build-md-cache:
runs-on: ubuntu-latest
environment: static-file-build
steps:
# Set up the main website repo
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Don't do a shallow clone
# install npm dependencies
- name: Set up node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- run: npm install
- name: make md cache
run: node bin/build-cache.js && tar -czvf .cache.tar.gz .cache
env:
GITHUB_TOKEN: ${{ secrets.CREATE_CACHE_MD_TOKEN }}
# Commit and push the changes
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions