feat: new blog post: #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |