Add buzon de quejas tab with Google Form #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: Token_Hggnface | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Replace token placeholder | |
| run: | | |
| TOKEN="${{ secrets.TOKEN_HUGGINGFCE }}" | |
| echo "Replacing token..." | |
| sed -i "s/HF_TOKEN_PLACEHOLDER/$TOKEN/g" script.js | |
| echo "Done. Checking result:" | |
| grep -o "hf_" script.js | head -1 || echo "Token NOT found!" | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: . | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |