-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/FAST-1766-transform-google-font-urls-for-discor…
…d-activity' into staging
- Loading branch information
Showing
652 changed files
with
135,699 additions
and
16,451 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,51 @@ | ||
name: Process and Upload Fonts | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
- master | ||
paths: | ||
- '**.css' | ||
|
||
jobs: | ||
process-fonts: | ||
environment: ${{ github.ref_name == 'master' && 'production' || 'staging' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install required tools | ||
run: sudo apt-get update && sudo apt-get install -y zsh perl curl | ||
|
||
- 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: Process Font URLs | ||
run: | | ||
chmod +x ./process-fonts.sh | ||
CLIENT_ID=${{ github.ref_name == 'master' && '1199271093882589195' || '1199270539278164008' }} | ||
DISCORD_ACTIVITY_CLIENT_ID=$CLIENT_ID \ | ||
./process-fonts.sh --no-prompt fonts.css | ||
- name: Upload to GCS | ||
run: | | ||
DEST_NAME="${{ github.ref_name == 'master' && 'production' || 'staging' }}.css" | ||
# Create temp directory and copy fonts.css to it | ||
TEMP_DIR="${{ runner.temp }}/fonts" | ||
mkdir -p "$TEMP_DIR" | ||
cp fonts.css "$TEMP_DIR/$DEST_NAME" | ||
# Sync to GCS | ||
gcloud storage rsync \ | ||
--project=roll20-actual \ | ||
"$TEMP_DIR" \ | ||
gs://roll20-cdn/discord/fonts \ | ||
--cache-control='no-cache' \ | ||
--recursive |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"Character Name": "Character Name", | ||
"Species": "Species", | ||
"Profession": "Profession", | ||
"Level": "Level", | ||
"Attributes": "Attributes", | ||
"Power": "Power", | ||
"Finesse": "Finesse", | ||
"Essence": "Essence", | ||
"Knowledge": "Knowledge", | ||
"Conciousness": "Conciousness", | ||
"Allure": "Allure" | ||
"Character Name": "Имя персонажа", | ||
"Species": "Раса", | ||
"Profession": "Профессия", | ||
"Level": "Уровень", | ||
"Attributes": "Атрибуты", | ||
"Power": "Сила", | ||
"Finesse": "Ловкость", | ||
"Essence": "Выносливость", | ||
"Knowledge": "Интеллект", | ||
"Conciousness": "Мудрость", | ||
"Allure": "Харизма" | ||
} |
Oops, something went wrong.