-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1.02 KB
/
dist-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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