Skip to content

Commit 703f123

Browse files
committed
feat: push.sh
1 parent 555e401 commit 703f123

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.ci/push.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
if ls scrolls/*.tar.gz 1> /dev/null 2>&1; then
2+
mc cp --recursive ./scrolls/*.tar.gz scrolls/druid-scrolls-staging
3+
mc cp ./latest.json scrolls/druid-scrolls-staging
4+
else
5+
echo "No scrolls to push"
6+
fi

.github/workflows/build-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ jobs:
1919
run: mc cp scrolls/druid-scrolls-staging/latest.json latest.json || true
2020
- run: sh find-changed-scrolls.sh
2121
name: Building new files
22-
- name: Upload scrolls
23-
run: mc cp --recursive ./scrolls/*.tar.gz scrolls/druid-scrolls-staging
24-
- name: Upload latest
25-
run: mc cp --recursive ./latest.json scrolls/druid-scrolls-staging
22+
- name: Pushing new scrolls
23+
run: sh .ci/push.sh

0 commit comments

Comments
 (0)