Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject Environment Variable for Github Pages Deployments in Vite Build #14

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e2c750d
Update run.sh
sopa301 Feb 1, 2024
3778441
Update run.sh
sopa301 Feb 1, 2024
cdc88eb
Update run.sh
sopa301 Feb 1, 2024
3caf7b2
Merge branch 'reposense:master' into master
sopa301 Dec 23, 2024
2bb2ef7
Modify for testing
sopa301 Dec 23, 2024
8010435
Try to recreate bug
sopa301 Dec 23, 2024
8535a5b
rebuild pages
sopa301 Dec 23, 2024
fcce8a9
Revert to master branch
sopa301 Dec 23, 2024
faabeff
Revert more
sopa301 Dec 23, 2024
556125d
Revert to buggy commit
sopa301 Dec 23, 2024
487b685
Use own branch
sopa301 Dec 23, 2024
fce2e64
Switch to buggy branch
sopa301 Dec 23, 2024
b436beb
rebuild pages
sopa301 Dec 23, 2024
f1f6d50
rebuild pages
sopa301 Dec 23, 2024
2382ab7
rebuild pages
sopa301 Dec 23, 2024
575fee6
Edit config scripts
sopa301 Dec 23, 2024
064f328
Add new configs
sopa301 Dec 23, 2024
41249df
Add debug statement
sopa301 Dec 23, 2024
dc767af
Add sanity check
sopa301 Dec 23, 2024
d15e410
Update scripts
sopa301 Dec 23, 2024
6c30dba
rebuild pages
sopa301 Dec 23, 2024
010ac7a
Force clean build each time
sopa301 Dec 23, 2024
2d3e4b0
Force rebuild of index.html
sopa301 Dec 23, 2024
4c410e1
Force rebuild of index.html
sopa301 Dec 23, 2024
75b7d72
Export variables
sopa301 Dec 23, 2024
965227c
Fix main.yml
sopa301 Dec 23, 2024
2403a51
Modify travis build script
sopa301 Dec 23, 2024
f42d8f4
Temp revert changes
sopa301 Dec 23, 2024
fd37a5c
Revert all changes for debugging
sopa301 Dec 23, 2024
d95594c
Manually install python dependencies
sopa301 Dec 23, 2024
9aa4700
Update openSSL version
sopa301 Dec 23, 2024
34227b6
Downgrade requests version
sopa301 Dec 23, 2024
98034cd
Re-add env var
sopa301 Dec 23, 2024
56fb599
Revert to default reposense retrieval
sopa301 Dec 23, 2024
acb9b6a
Revert unnecessary changes
sopa301 Dec 23, 2024
27f4aac
Revert changes to get-reposense
sopa301 Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: pip install requests
- name: Generate report
run: bash ./run.sh
run: bash -c "source ./configs/build-github.sh && ./run.sh"
- name: Deploy GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ language: java

dist: xenial

script: ./run.sh
python: "3.7"

install: pip install requests==2.25.1

script: bash -c "source ./configs/build-travis.sh && ./run.sh"

deploy:
skip_cleanup: true
Expand Down
8 changes: 8 additions & 0 deletions configs/build-github.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [ -n "$GITHUB_REPOSITORY" ]; then
REPO_NAME=$(basename "$GITHUB_REPOSITORY")
export VITE_BASE_DIR="/$REPO_NAME/"
fi

echo "VITE_BASE_DIR:$VITE_BASE_DIR"
6 changes: 6 additions & 0 deletions configs/build-travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if [ -n "$TRAVIS_REPO_SLUG" ]; then
REPO_NAME=$(basename "$TRAVIS_REPO_SLUG")
export VITE_BASE_DIR="/$REPO_NAME/"
fi

echo "VITE_BASE_DIR:$VITE_BASE_DIR"
2 changes: 1 addition & 1 deletion get-reposense.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ def download_file(url):
exit()

# If no arguments are provided or --release
handle_latest_release()
handle_latest_release()