Skip to content

Commit 7bbcfe3

Browse files
Update deploy.yml
Added support for environment variables
1 parent 07bbe14 commit 7bbcfe3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yml

+10
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,22 @@ jobs:
3333
with:
3434
cache: pnpm
3535
- run: pnpm install
36+
- name: 'Create env file'
37+
run: |
38+
touch .env
39+
echo NUXT_PUBLIC_DROPBOX_TOKEN=${{ secrets.NUXT_PUBLIC_DROPBOX_TOKEN }} >> .env
40+
cat .env
3641
- run: pnpm build
3742
env:
3843
NITRO_PRESET: deno_deploy
44+
NUXT_PUBLIC_DROPBOX_TOKEN: |
45+
${{ secrets.NUXT_PUBLIC_DROPBOX_TOKEN }}
3946
- name: Deploy to Deno Deploy
4047
uses: denoland/deployctl@v1
4148
with:
4249
project: nikechukwu
4350
entrypoint: server/index.ts
4451
root: .output
52+
env: |
53+
NUXT_PUBLIC_DROPBOX_TOKEN=${{ secrets.NUXT_PUBLIC_DROPBOX_TOKEN }}
54+

0 commit comments

Comments
 (0)