Skip to content

Commit

Permalink
chore: Update static.yml to include environment variable for GitHub t…
Browse files Browse the repository at this point in the history
…oken
  • Loading branch information
singhAmandeep007 committed May 19, 2024
1 parent e27c593 commit 2c748c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
- name: Create .env with Github Secrets and run build
run: |
touch .env
echo VITE_APP_GITHUB_TOKEN=$VITE_APP_GITHUB_TOKEN >> .env
npm run build
env:
VITE_APP_GITHUB_TOKEN: ${{ secrets.VITE_APP_GITHUB_TOKEN }}
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
Expand All @@ -50,4 +53,4 @@ jobs:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit 2c748c8

Please sign in to comment.