Skip to content

update to LTS node #136

update to LTS node

update to LTS node #136

Workflow file for this run

name: Build Static Pages
on:
push:
branches: main
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.17.1
cache: yarn
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v1
with:
# version: 0.9.1
version: 0.10.1
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Zig
run: zig build -Drelease-small
# - name: Clean garbage
# run: |
# find static/ -name "*.o" -delete
# find static/ -name "*.so" -delete
# find static/ -name "*.so.0" -delete
- name: Build Site
run: yarn build
- name: Add Github files
run: |
touch .out/.nojekyll
echo a1liu.com >> .out/CNAME
- name: Deploy
run: |
git config user.name github-actions
git config user.email [email protected]
git --work-tree .out add --all
git commit -m "Automatic Deploy action run by github-actions"
git push origin HEAD:gh-pages --force