Skip to content

Commit

Permalink
env test
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakdeb committed Dec 10, 2024
1 parent d335916 commit 4349139
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,24 @@ jobs:
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci # or pnpm install / yarn install / bun install
#- name: Set github env params to env file
# uses: c-py/action-dotenv-to-setenv@v5
# with:
# env-file: .env
- name: 'Create env file'
run: touch .env
- name: Creating .env file
uses: fmunirdev/[email protected]
env:
VITEPRESS_BASE_URL: 'value'
VITEPRESS_BASE: 'value'
with:
variableName: VITEPRESS_BASE_URL,VITEPRESS_BASE

- name: Create .env file
run: |
echo "VITEPRESS_BASE=${{ secrets.VITEPRESS_BASE }}" >> .env
echo "VITEPRESS_BASE_URL=${{ secrets.VITEPRESS_BASE_URL }}" >> .env
# Check if .env file was created (for debugging)
- name: Verify .env file contents
run: cat .env
# - name: 'Create env file'
# run: touch .env
# - name: Creating .env file
# uses: fmunirdev/[email protected]
# env:
# VITEPRESS_BASE_URL: 'value'
# VITEPRESS_BASE: 'value'
# with:
# variableName: VITEPRESS_BASE_URL,VITEPRESS_BASE
- name: Build with VitePress
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
Expand Down

0 comments on commit 4349139

Please sign in to comment.