forked from Roll20/roll20-character-sheets
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into starforged-dataforged-npm-moves
- Loading branch information
Showing
679 changed files
with
97,362 additions
and
34,991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Processes and uploads sheet changes | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
- master | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
deployment: | ||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/master' | ||
environment: ${{ github.ref_name == 'master' && 'production' || 'staging' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CDN_SHEETS_FOLDER: ${{ vars.CDN_SHEETS_FOLDER }} | ||
# Set job outputs to values from filter step | ||
outputs: | ||
sheet: ${{ steps.filter.outputs.sheet }} | ||
sheet-json: ${{ steps.filter.outputs.sheet_files }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
# Enable listing of files matching each filter. | ||
# Paths to files will be available in `${FILTER_NAME}_files` output variable. | ||
# Paths will be escaped and space-delimited. | ||
# Output is usable as command-line argument list in Linux shell | ||
list-files: shell | ||
filters: | | ||
sheet: | ||
- added|modified: '*/sheet.json' | ||
- id: 'auth' | ||
if: steps.filter.outputs.sheet == 'true' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.SHEET_HTTP_GCP_KEYFILE }}' | ||
- name: 'Set up Cloud SDK' | ||
if: steps.filter.outputs.sheet == 'true' | ||
uses: 'google-github-actions/setup-gcloud@v1' | ||
|
||
- name: 'Use gcloud CLI' | ||
if: steps.filter.outputs.sheet == 'true' | ||
run: 'gcloud info' | ||
- uses: oven-sh/setup-bun@v1 | ||
if: steps.filter.outputs.sheet == 'true' | ||
|
||
- run: bun install | ||
if: steps.filter.outputs.sheet == 'true' | ||
working-directory: contrib/sheet-pixie | ||
|
||
# Handles when sheets have been updated individually | ||
- run: bun run contrib/sheet-pixie/index.ts ${{ steps.filter.outputs.sheet_files }} | ||
if: steps.filter.outputs.sheet == 'true' | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} | ||
- run: find ${{ env.DEST_DIR }} -maxdepth 1 -type d -exec sh -c 'cp -R --verbose "$(basename "{}")/translations" "{}/"' 2>/dev/null \; | ||
if: steps.filter.outputs.sheet == 'true' | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} | ||
- run: gcloud storage rsync --project=roll20-actual ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} gs://roll20-cdn/${{ env.CDN_SHEETS_FOLDER }} --cache-control='no-cache' --recursive | ||
if: steps.filter.outputs.sheet == 'true' | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Forces-updates all sheets | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
deployment: | ||
environment: production | ||
runs-on: ubuntu-latest | ||
env: | ||
CDN_SHEETS_FOLDER: ${{ vars.CDN_SHEETS_FOLDER }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.SHEET_HTTP_GCP_KEYFILE }}' | ||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v1' | ||
|
||
- name: 'Use gcloud CLI' | ||
run: 'gcloud info' | ||
- uses: oven-sh/setup-bun@v1 | ||
|
||
- run: bun install | ||
working-directory: contrib/sheet-pixie | ||
|
||
# Handles when a force-update has been requested (meaning all sheets will be re-built and deployed) | ||
- run: make all | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} | ||
- run: find ${{ env.DEST_DIR }} -maxdepth 1 -type d -exec sh -c 'cp -R --verbose "$(basename "{}")/translations" "{}/"' 2>/dev/null \; | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} | ||
- run: gcloud storage rsync --project=roll20-actual ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} gs://roll20-cdn/${{ env.CDN_SHEETS_FOLDER }} --delete-unmatched-destination-objects --cache-control='no-cache' --recursive | ||
env: | ||
DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 18.17.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"html":"apocalypse-frame.html","css":"apocalypse-frame.css","authors":"Bill Garrett <[email protected]>; Binary Star <[email protected]>","roll20userid":"118980","preview":"preview.png","instructions":"**APOCALYPSE FRAME Sheet**\n\nMade by Astral Frontier, with some help by Binary Star Games, for [APOCALYPSE FRAME](https://binarystar.games/apocalypse-frame-itch-r/)!\n\n**Autofilling**: \n\n- Just put in your favorite Frame and it'll auto-populate! It has data for all non-Advanced Frames in the core book.\n- Likewise with Armaments and Systems, just start typing. (Do Frame first though, it populates defaults.)\n- Maximum resources will be set automatically when you set Attributes. Current resources are dependent on the number of boxes checked.\n- If you add more tags to the listing, it'll display them as well.\n\n**Reference**: \n\nA quick cheat sheet for most of the core player rules is on the second tab!","legacy":false} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.