diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml index a864c9b8..176679d0 100644 --- a/.github/workflows/gh_pages.yml +++ b/.github/workflows/gh_pages.yml @@ -36,6 +36,20 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + - name: Make directories + run: | + if [ ! -d "${XDG_DATA_HOME:-$HOME/.local/share}" ]; then + echo "Creating data directory: ${XDG_DATA_HOME:-$HOME/.local/share}" + mkdir -p ${XDG_DATA_HOME:-$HOME/.local/share} + else + echo "Data directory already exists: ${XDG_DATA_HOME:-$HOME/.local/share}" + fi + if [ ! -d "${XDG_CACHE_HOME:-$HOME/.cache}" ]; then + echo "Creating cache directory: ${XDG_CACHE_HOME:-$HOME/.cache}" + mkdir -p ${XDG_CACHE_HOME:-$HOME/.cache} + else + echo "Cache directory already exists: ${XDG_CACHE_HOME:-$HOME/.cache}" + fi - name: Install Mold uses: rui314/setup-mold@v1 - name: Install Rust