Skip to content

Commit

Permalink
ci(deploy/astro): Update working paths
Browse files Browse the repository at this point in the history
- Updated the working directory for generating Vault manifest and creating output directory
- Modified the SSG assets generation command to use relative paths
- Changed the working directory for installing dependencies
- Updated the path parameter for Astro project in the deployment step
  • Loading branch information
SakuraIsayeki committed Feb 17, 2024
1 parent fa90fe3 commit d0ea486
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/deploy-astro-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,32 @@ jobs:
uses: nodsoft/setup-moltenobsidian@main

- name: Generate Vault manifest
run: moltenobsidian manifest generate "nodsoft_moltenobsidian_web/vault"
working-directory: "nodsoft_moltenobsidian_web"
run: moltenobsidian manifest generate "vault"

- name: Create output directory (recursive)
run: mkdir -p "nodsoft_moltenobsidian_web/public/vault"
working-directory: "nodsoft_moltenobsidian_web"
run: mkdir -p "public/vault"

- name: Generate SSG assets
working-directory: "nodsoft_moltenobsidian_web"
run: |
moltenobsidian ssg generate \
--from-folder "nodsoft_moltenobsidian_web/vault" \
--output-path "nodsoft_moltenobsidian_web/public/vault" \
--from-folder "vault" \
--output-path "public/vault" \
--ignored-files ".gitignore"
- name: Install PNPM
run: npm install -g pnpm

- name: Install dependencies
run: |
cd "nodsoft_moltenobsidian_ssg_client"
pnpm recursive install --prod
working-directory: "nodsoft_moltenobsidian_ssg_client"
run: pnpm recursive install --prod

- name: Install, build, and upload
uses: withastro/action@v1
with:
path: nodsoft_moltenobsidian_web # The root location of your Astro project inside the repository. (optional)
path: './nodsoft_moltenobsidian_web' # The root location of your Astro project inside the repository. (optional)
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

Expand Down

0 comments on commit d0ea486

Please sign in to comment.