Skip to content

Commit 3df1fb3

Browse files
committed
update deploy workflow
1 parent a3382f0 commit 3df1fb3

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Deploy to GitHub Pages
33
on:
44
# Allows you to run this workflow manually from the Actions tab on GitHub.
55
workflow_dispatch:
6+
# Trigger workflow when one of the data files was changed (check if separate jobs of gather-data each trigger this workflow separately)
7+
# push:
8+
# paths:
9+
# - '**/*.json'
610

711
# Allow this job to clone the repo and create a page deployment
812
permissions:
@@ -15,21 +19,15 @@ jobs:
1519
runs-on: ubuntu-latest
1620
steps:
1721
- name: Checkout your repository using git
18-
uses: actions/checkout@v3
19-
with:
20-
submodules: true
21-
- uses: oven-sh/setup-bun@v1
22-
with:
23-
bun-version: latest
24-
- name: install deps in submodule
25-
run: |
26-
cd obsidian-js-engine-plugin
27-
bun install --frozen-lockfile
28-
cd ..
22+
uses: actions/checkout@v4
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v2
25+
- name: Install dependencies
26+
run: bun install --frozen-lockfile
2927
- name: Install, build, and upload your site
30-
uses: withastro/action@v1
28+
uses: withastro/action@v3
3129
with:
32-
path: . # The root location of your Astro project inside the repository. (optional)
30+
path: website # The root location of your Astro project inside the repository. (optional)
3331
# node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 18. (optional)
3432
package-manager: bun@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
3533

@@ -42,4 +40,4 @@ jobs:
4240
steps:
4341
- name: Deploy to GitHub Pages
4442
id: deployment
45-
uses: actions/deploy-pages@v1
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)