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 c31c015 commit 338d979
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -13,13 +16,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Créer le dossier public
- name: Create public directory
run: mkdir -p ./public

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

- name: Déployer sur GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 338d979

Please sign in to comment.