Skip to content

Commit

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

- name: Install and Build
run: |
yarn install
yarn build && touch ./out/.nojekyll
yarn postbuild
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
Expand Down

0 comments on commit deb5bf9

Please sign in to comment.