Skip to content

Commit

Permalink
update wjst template on vue-platform and react-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackerakiUA committed Nov 30, 2024
1 parent a6f0133 commit 123c877
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/waw-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
cd ..
git clone [email protected]:WebArtWork/vue-platform.git vue-platform
rm -rf vue-platform/server/*
cp -r server/* vue-platform/server/
cd vue-platform
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
cd ..
git clone [email protected]:WebArtWork/react-platform.git react-platform
rm -rf react-platform/server/*
cp -r server/* react-platform/server/
cd react-platform
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
- name: Clean up SSH
run: |
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/wjst-css.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Sync SCSS to wjst-css

on:
push:
paths:
- 'template/css/scss/**' # Trigger only on changes in the scss folder

jobs:
sync-scss:
runs-on: ubuntu-latest

steps:
- name: Checkout source repository
uses: actions/checkout@v3

- name: Set up SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Sync SCSS folder to wjst-css
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone [email protected]:WebArtWork/wjst-css.git wjst-css
rm -rf wjst-css/*
cp -r template/css/scss/* wjst-css/
cd wjst-css
git add .
git commit -m "Update SCSS files from source repository" || echo "No changes to commit"
git push --force
- name: Clean up SSH
run: |
rm -f ~/.ssh/id_rsa
rm -f ~/.ssh/known_hosts
16 changes: 16 additions & 0 deletions .github/workflows/wjst-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ jobs:
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
cd ..
git clone [email protected]:WebArtWork/vue-platform.git vue-platform
rm -rf vue-platform/template/*
cp -r template/* vue-platform/template/
cd vue-platform
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
cd ..
git clone [email protected]:WebArtWork/react-platform.git react-platform
rm -rf react-platform/template/*
cp -r template/* react-platform/template/
cd react-platform
git add .
git commit -m "Update files from source repository" || echo "No changes to commit"
git push --force
- name: Clean up SSH
run: |
Expand Down

0 comments on commit 123c877

Please sign in to comment.