Skip to content

Commit

Permalink
fix weird paths
Browse files Browse the repository at this point in the history
  • Loading branch information
viperehonchuk committed Feb 1, 2024
1 parent bf7d27c commit 30534f6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 554 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ jobs:
BASE_PATH: ${{ vars.BASE_PATH }}
PATH_TO_LOCALIZED_CONTENT: ${{ vars.PATH_TO_LOCALIZED_CONTENT }}
ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}
- run: sudo apt install rename
# Recursively replace all asterisks in folder names with "_asterisk_"
- run: find ./dist -depth -type d -name "*" -execdir rename 's/\*/_asterisk_/g' "{}" \;
# Recursively replace all doublecolons in folder names with "_doublecolon_"
- run: find ./dist -depth -type d -name "*" -execdir rename 's/::/_doublecolon_/g' "{}" \;
# Recursively replace all colons in folder names with "_colon_"
- run: find ./book -depth -type d -name "*" -execdir rename 's/:/_colon_/g' "{}" \;
- uses: actions/upload-artifact@v4
with:
if-no-files-found: error
Expand All @@ -118,13 +125,21 @@ jobs:
with:
name: build
path: dist
- run: sudo apt install rename
# Recursively replace all "_asterisk_" in folder names with asterisks
- run: find ./dist -depth -type d -name "*_asterisk_*" -execdir rename 's/_asterisk_/*/g' "{}" \;
# Recursively replace all "_doublecolon_" in folder names with doublecolons
- run: find ./dist -depth -type d -name "*_doublecolon_*" -execdir rename 's/_doublecolon_/::/g' "{}" \;
# Recursively replace all "_colon_" in folder names with colons
- run: find ./dist -depth -type d -name "*_colon_*" -execdir rename 's/_colon_/:/g' "{}" \;
- uses: actions/download-artifact@v4
with:
name: interactive-examples
path: dist/interactive-examples
- uses: actions/setup-node@v4
with:
node-version: '21'
- run: yarn global add surge
- run: yarn deploy
env:
SURGE_LOGIN: ${{ vars.SURGE_LOGIN }}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"stylelint-config-html": "~1.1.0",
"stylelint-config-standard-scss": "~13.0.0",
"stylelint-scss": "~6.1.0",
"surge": "0.23.1",
"ts-jest": "~29.1.2",
"ts-node": "~10.9.2"
}
Expand Down
Loading

0 comments on commit 30534f6

Please sign in to comment.