Skip to content

Commit

Permalink
Merge pull request #253 from LucienShui/feature/cdn_refact
Browse files Browse the repository at this point in the history
Feature/cdn refact
LucienShui authored Jun 26, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 657f6d0 + 4037cb1 commit 063f46d
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/shell/build_and_update_cdn.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/local/env bash
#!/usr/bin/env bash
rm -rf .git && \
git clone https://github.com/PasteUs/CDN.git -b master pasteme_cdn && \
npm ci && \
npm run build --if-present && \
for each in css js img; do; eval "cp pasteme/$each/* pasteme_cdn/pasteme/$each/"; done && \
bash -x .github/shell/copy.sh && \
cd pasteme_cdn && \
git config user.name "Lucien Shui" && \
git config user.email "lucien@lucien.ink" && \
5 changes: 5 additions & 0 deletions .github/shell/copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
for each in css js img
do
eval "cp pasteme/${each}/* pasteme_cdn/pasteme/${each}/"
done
2 changes: 1 addition & 1 deletion .github/shell/pasteme_dev_update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/env bash
#!/usr/bin/env bash
set -x && \
echo 'Start updating PasteMe dev' && \
git clone https://github.com/LucienShui/PasteMe.git -b dev PasteMeDev --recursive && \

0 comments on commit 063f46d

Please sign in to comment.