Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Build and Deploy to GitHub Pages
- on:
- push:
- branches:
- - main
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Inject Supabase secrets into config.js ES module
- run: |
- echo "export const CONFIG = {" > config.js
- echo " url: '${{ secrets.SUPABASE_URL }}'," >> config.js
- echo " key: '${{ secrets.SUPABASE_KEY }}'" >> config.js
- echo "};" >> config.js
- - name: List files before deployment (debugging)
- run: ls -al
- - name: Deploy to GitHub Pages
- uses: peaceiris/actions-gh-pages@v3
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./
- add: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement