File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,21 @@ jobs:
32
32
33
33
# Define the URL of the navbar to be used
34
34
NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/TuringNavbar.html"
35
-
36
- # Update all HTML files in the current directory (gh-pages root)
37
- ./insert_navbar.sh . $NAVBAR_URL
38
-
35
+
36
+ # Define file & folder to exclude (comma-separated list), Un-Comment the below line for excluding anything!
37
+ EXCLUDE_PATHS="benchmarks"
38
+
39
+ # Update all HTML files in the current directory (gh-pages root), use `--exclude` only if requred!
40
+ ./insert_navbar.sh . $NAVBAR_URL --exclude "$EXCLUDE_PATHS"
41
+
39
42
# Remove the insert_navbar.sh file
40
43
rm insert_navbar.sh
41
-
44
+
42
45
# Check if there are any changes
43
46
if [[ -n $(git status -s) ]]; then
44
47
git add .
45
48
git commit -m "Added navbar and removed insert_navbar.sh"
46
49
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
47
50
else
48
51
echo "No changes to commit"
49
- fi
52
+ fi
You can’t perform that action at this time.
0 commit comments