Skip to content

Commit ab7aee8

Browse files
authored
Create extension.yml
1 parent baefc90 commit ab7aee8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/extension.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Copy Demo to Extension
2+
3+
on:
4+
push:
5+
paths:
6+
- 'logojump/demo/**'
7+
8+
jobs:
9+
copy-files:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Copy all demo files except index.html
16+
run: |
17+
mkdir -p logojump/extension/
18+
rsync -av --exclude='index.html' logojump/demo/ logojump/extension/
19+
20+
- name: Commit and push changes
21+
run: |
22+
git config --global user.name "github-actions[bot]"
23+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
24+
git add logojump/extension/
25+
if ! git diff --cached --quiet; then
26+
git commit -m "Sync demo files to extension"
27+
git push
28+
else
29+
echo "No changes to commit"

0 commit comments

Comments
 (0)