Skip to content

Commit

Permalink
fix(main.yml): fix env setting location
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory0304 committed Jun 23, 2023
1 parent 3270b04 commit 31ab50b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
uses: actions/checkout@v3

- name: Install and Build
run: |
yarn install
yarn build && touch ./out/.nojekyll
yarn postbuild
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
env:
NEXT_PUBLIC_RORY_DEV: ${{ secrets.NEXT_PUBLIC_RORY_DEV }}
NEXT_PUBLIC_CONTENTFUL_GRAPHQL_ENDPOINT: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_GRAPHQL_ENDPOINT }}
NEXT_PUBLIC_CONTENTFUL_SPACE_ID: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_SPACE_ID }}
NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT }}
NEXT_PUBLIC_CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN }}
NEXT_PUBLIC_CONTENTFUL_CONTENT_PREVIEW_API_ACCESS_TOKEN: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_CONTENT_PREVIEW_API_ACCESS_TOKEN }}
run: |
yarn install
yarn build && touch ./out/.nojekyll
yarn postbuild
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out

0 comments on commit 31ab50b

Please sign in to comment.