Skip to content

Merge pull request #14 from zeropsio/workflow-setup #1

Merge pull request #14 from zeropsio/workflow-setup

Merge pull request #14 from zeropsio/workflow-setup #1

Workflow file for this run

name: Optimize SVGs
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run SVG optimization script
run: node index.js
- name: Upload optimized SVGs
uses: actions/upload-artifact@v3
with:
name: optimized-svgs
path: ./covers/svg