From a8dd1c12fe6fde137a8ee537bdadb2f681b5e272 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Sat, 29 Apr 2023 21:18:06 -0500 Subject: [PATCH] ops: trying to work with s3cmd --- .github/actions/glob/action.yml | 7 ++++++- .github/helpers/glob.sh | 6 +----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/actions/glob/action.yml b/.github/actions/glob/action.yml index 1b158c7..f3f88c4 100644 --- a/.github/actions/glob/action.yml +++ b/.github/actions/glob/action.yml @@ -29,4 +29,9 @@ runs: - id: glob shell: bash run: - ./.github/helpers/glob.sh "${{ inputs.folder }}" ${{ inputs.docket }} \ No newline at end of file + ./.github/helpers/glob.sh "${{ inputs.folder }}" ${{ inputs.docket }} + - name: Upload Glob and Cleanup + run: | + s3cmd put zod/.urb/put/*.glob -P s3://hmillerdev/sphinx/ + sleep 5s + rm -rf zod \ No newline at end of file diff --git a/.github/helpers/glob.sh b/.github/helpers/glob.sh index 5160b0c..62d1457 100755 --- a/.github/helpers/glob.sh +++ b/.github/helpers/glob.sh @@ -23,13 +23,9 @@ rsync -avL $1 zod/work/glob hood "commit %work" dojo "-garden!make-glob %work /glob" -s3cmd put zod/.urb/put/*.glob -P s3://hmillerdev/sphinx/ -gsutil cp zod/.urb/put/*.glob gs://bootstrap.urbit.org hash=$(ls -1 -c zod/.urb/put | head -1 | sed "s/glob-\([a-z0-9\.]*\).glob/\1/") sed -i "s/glob\-[a-z0-9\.]*glob' *[a-z0-9\.]*\]/glob-$hash.glob' $hash]/g" $2 echo "hash=$(echo $hash)" >> $GITHUB_OUTPUT -hood "exit" -sleep 5s -rm -rf zod \ No newline at end of file +hood "exit" \ No newline at end of file