Skip to content

Commit

Permalink
Test var in env
Browse files Browse the repository at this point in the history
  • Loading branch information
akhuoa committed Mar 21, 2024
1 parent ea06bba commit 65d5f56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
api_location: ${{ vars.VITE_API_LOCATION }}

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down Expand Up @@ -40,7 +43,7 @@ jobs:
- name: Create env file for docs
run: |
touch docs/.env
echo VITE_API_LOCATION="test:${{ secrets.VITE_API_LOCATION }}" >> docs/.env
echo "VITE_API_LOCATION=$api_location" >> docs/.env
cat docs/.env
- name: Build with VitePress
Expand Down

0 comments on commit 65d5f56

Please sign in to comment.