Skip to content

Commit

Permalink
Merge pull request #92 from awslabs/docs-pipelines
Browse files Browse the repository at this point in the history
Fix deploy-docs workflow: remove redundant `working-directory` specs
  • Loading branch information
michaelhtm authored Nov 7, 2024
2 parents d3197da + 70dccc9 commit 19a68f0
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 19a68f0

Please sign in to comment.