Skip to content

simgot-logo

simgot-logo #49

Workflow file for this run

name: dist
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
run-deno:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y librsvg2-bin imagemagick
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run Deno script
run: deno run --allow-read --allow-write --allow-run tools/dist.ts
- name: Check for changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Changes detected."
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Rebuild dist/ folder"
git push
else
echo "No changes detected."
fi