Skip to content

Commit

Permalink
Merge branch 'feature/CSC-1652-gh-action-for-processing-custom-sheets…
Browse files Browse the repository at this point in the history
…' into staging
  • Loading branch information
danielxvu committed Oct 2, 2023
2 parents e07fd19 + 37e9827 commit d524994
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 36 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/use-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,8 @@ jobs:
# run any `bun` or `bunx` command
- run: bun install
working-directory: contrib/sheet-pixie
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: fd-find
- run: make clean
- run: bun run contrib/sheet-pixie/index.ts ${{ needs.changes.outputs.sheet-json }}
- run: bash update.sh ${{ runner.temp }}
- run: bash sync_sheets.sh
- run: gcloud storage rsync --project=roll20-actual ${{ runner.temp }} "gs://roll20-cdn/$CDN_SHEETS_FOLDER" --cache-control='no-cache' --recursive

force-update:
name: Process HTML/CSS for all character sheets (force-update)
Expand All @@ -90,13 +81,5 @@ jobs:
# run any `bun` or `bunx` command
- run: bun install
working-directory: contrib/sheet-pixie
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: fd-find
- run: make clean
- run: make all
- run: bash force-update.sh "$RUNNER_TEMP"
- run: bash force-update.sh ${{ runner.temp }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ config:
fd . --exclude contrib --type d --max-depth 1 --exec cp $(DEFAULT_RELEASE_SCRIPT) {} \; || true

clean:
rm -rf **/*/dist
rm -rf **/dist

all:
fd . --strip-cwd-prefix --exclude contrib --exclude "Zelda BOTW" --type d --max-depth 1 --exec bun run contrib/sheet-pixie/index.ts "{}/sheet.json" \;
find * -mindepth 1 -maxdepth 1 -not -path 'Zelda BOTW/sheet.json' -type f -name "sheet.json" -print0 | parallel -0 bun run contrib/sheet-pixie/index.ts {}
5 changes: 0 additions & 5 deletions gcp.sh

This file was deleted.

10 changes: 0 additions & 10 deletions update.sh

This file was deleted.

0 comments on commit d524994

Please sign in to comment.