Skip to content

Commit

Permalink
use deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
zaviermiller committed Aug 22, 2024
1 parent fd66073 commit 20f5114
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
- name: Install deps
run: pnpm install --frozen-lockfile

- name: Build and deploy to GH pages
- name: Build application
env:
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
pnpm run deploy
run: pnpm build

- name: Deploy to GH Pages
uses: preaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }}
publish_dir: ./public

0 comments on commit 20f5114

Please sign in to comment.