Skip to content

Commit

Permalink
Refactor deploy-docs workflow:
Browse files Browse the repository at this point in the history
- Remove redundant working-directory specs
  • Loading branch information
a-hilaly committed Nov 7, 2024
1 parent d3197da commit 70dccc9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'website/**'
- "website/**"

jobs:
build:
Expand All @@ -24,15 +24,12 @@ jobs:

- name: Install dependencies
run: bun install --frozen-lockfile
working-directory: ./website

- name: Build website
run: bun build
working-directory: ./website

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
working-directory: ./website
with:
path: build

Expand All @@ -54,9 +51,10 @@ jobs:
steps:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if:
github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./websites/build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"

0 comments on commit 70dccc9

Please sign in to comment.