Skip to content

Commit

Permalink
Fix working-directory config
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jul 27, 2024
1 parent 80ac1ae commit a0378dd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy
on:
push:
branches:
- main
- master
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs at midnight UTC every day
Expand All @@ -15,12 +15,14 @@ jobs:
steps:
- name: Checkout this repo
uses: actions/checkout@v4
with:
path: mdn-graph

- name: Checkout mdn/content repo
uses: actions/checkout@v4
with:
repository: mdn/content
path: ../content
path: content

- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -36,17 +38,19 @@ jobs:
- name: Install dependencies for mdn/content
run: yarn install
working-directory: ../content
working-directory: ./content

- name: Build mdn/content
run: yarn build --nohtml
working-directory: ../content
working-directory: ./content

- name: Install dependencies for this repo
run: bun install
working-directory: ./mdn-graph

- name: Build this repo
run: bun run build
working-directory: ./mdn-graph

- name: Determine commit message
id: commit-message
Expand All @@ -61,6 +65,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
working-directory: ./mdn-graph
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Expand Down

0 comments on commit a0378dd

Please sign in to comment.