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 2b8a3ab commit 9df2bd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Create public directory
run: mkdir -p ./public # Crée le dossier public s'il n'existe pas

- name: Inject secret into secret.js
run: echo "window.PROTECTED_PASSWORD = '${{ secrets.PROTECTED_PASSWORD }}';" > ./public/secret.js

- name: Copy HTML and other assets to public
run: cp -r ./index.html ./public/ # Copie le fichier HTML dans le dossier public

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 9df2bd7

Please sign in to comment.