mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.4
This commit is contained in:
2
.github/set-deployed-flag.sh
vendored
2
.github/set-deployed-flag.sh
vendored
@@ -11,5 +11,3 @@ version=$1
|
||||
|
||||
# Set the IS_DEPLOYED variable for production.
|
||||
sed -i 's/IS_DEPLOYED\s*=\s*undefined/IS_DEPLOYED='"\"${version}\""'/g' js/utils.js
|
||||
|
||||
sed -i 's#DEPLOYED_IMG_ROOT\s*=\s*undefined#DEPLOYED_IMG_ROOT='"\"https://raw.githubusercontent.com/5etools-mirror-2/5etools-img/main/\""'#g' js/utils.js
|
||||
|
||||
5
.github/set-img-root.sh
vendored
Normal file
5
.github/set-img-root.sh
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
sed -i 's#DEPLOYED_IMG_ROOT\s*=\s*undefined#DEPLOYED_IMG_ROOT='"\"https://raw.githubusercontent.com/5etools-mirror-2/5etools-img/main/\""'#g' js/utils.js
|
||||
5
.github/workflows/pages.yml
vendored
5
.github/workflows/pages.yml
vendored
@@ -32,16 +32,17 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Set Deployed Flag
|
||||
- name: Set Deployed Flag and Image Root
|
||||
run: |
|
||||
bash ./.github/set-deployed-flag.sh ${{ github.ref_name }}
|
||||
bash ./.github/set-img-root.sh
|
||||
|
||||
# Notably: remove anything which should not be added to the service worker manifest:
|
||||
# - `homebrew`
|
||||
# - `prerelease`
|
||||
- name: Cleanup
|
||||
run: |
|
||||
rm -rf .gitmodules *.md *.zip scss spellcheck homebrew prerelease
|
||||
rm -rf *.md *.zip scss spellcheck homebrew prerelease
|
||||
ls -lah
|
||||
|
||||
# Remove entries from the `.gitignore` so the gh-pages action can correctly add+commit them to the pages branch
|
||||
|
||||
Reference in New Issue
Block a user