Skip to content

feat: new blog post: #40

feat: new blog post:

feat: new blog post: #40

Workflow file for this run

name: build
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 20.x
- name: Install dependencies
run: yarn install --pure-lockfile
- name: Test
run: yarn run test
- name: Build
run: yarn run build
env:
NODE_ENV: "production"
NODE_OPTIONS: "--openssl-legacy-provider"
- name: Install oxipng
run: cargo install oxipng --locked
- name: Run oxipng
run: oxipng -o max -a -r public
- name: Deploy
run: docker compose run deploy
env:
DEPLOY_KEY: ${{ secrets.deploy_key }}
DEPLOY_TARGET: ${{ secrets.deploy_target }}