Skip to content

Commit

Permalink
qr
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanprt authored Nov 17, 2024
1 parent 362415b commit 2b8a3ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Inject secret into HTML
run: |
sed -i 's|PLACEHOLDER_PASSWORD|${{ secrets.PROTECTED_PASSWORD }}|g' ./index.html
- name: Inject secret into secret.js
run: echo "window.PROTECTED_PASSWORD = '${{ secrets.PROTECTED_PASSWORD }}';" > ./public/secret.js

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_dir: ./public

0 comments on commit 2b8a3ab

Please sign in to comment.