Skip to content

Commit

Permalink
set path
Browse files Browse the repository at this point in the history
  • Loading branch information
basvandriel committed Dec 7, 2024
1 parent c87d0e6 commit b8806f7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-ghpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5


# This needs a _site directory
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
path: tmp/site


# TODO build to folder
Expand Down
17 changes: 17 additions & 0 deletions build_for_ghpages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Save the git repo path
GIT_REPO_DIRECTORY=$(dirname "$0")

# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=$(readlink -f "$0")
SCRIPT_PATH=$(dirname "$SCRIPT")

TEMP_REPO_PATH="$(dirname "$SCRIPT")/tmp/site"

mkdir "$(dirname "$SCRIPT")/tmp/"
mkdir $TEMP_REPO_PATH

# Upload the English terms
python -m src.cli docs/TERMS_EN.md $TEMP_REPO_PATH/terms.pdf

# Copy the CNAME file to the directory
cp "$SCRIPT_PATH/src/CNAME" $TEMP_REPO_PATH

0 comments on commit b8806f7

Please sign in to comment.