Skip to content

Commit bd0c825

Browse files
committed
ci: add env variables
Signed-off-by: Mehdi Nassim KHODJA <18899702+naskio@users.noreply.github.com>
1 parent 5a15003 commit bd0c825

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434

35-
- name: Set BASE_PATH to environment
36-
run: echo "BASE_PATH=/$(basename ${{ github.repository }})" >> $GITHUB_ENV
35+
- name: Set NEXT_PUBLIC_BASE_PATH to environment
36+
run: echo "NEXT_PUBLIC_BASE_PATH=/$(basename ${{ github.repository }})" >> $GITHUB_ENV
3737

3838
- uses: pnpm/action-setup@v4
3939

@@ -62,6 +62,11 @@ jobs:
6262
- run: pnpm test
6363

6464
- run: pnpm build
65+
env:
66+
NEXT_PUBLIC_BASE_PATH: ${{ env.NEXT_PUBLIC_BASE_PATH }}
67+
NEXT_PUBLIC_REPOSITORY_URL: 'https://github.com/${{ github.repository }}'
68+
NEXT_PUBLIC_TWITTER_URL: 'https://twitter.com/naskdev'
69+
NEXT_PUBLIC_RENDERING_LIBRARIES: 'docxjs,mammoth.js,Google Docs,Office'
6570

6671
- name: Upload artifact
6772
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)