Fix deploy auth: use HTTP header instead of URL credentials #2
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: Deploy to Clever Cloud | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push to Clever Cloud | |
| env: | |
| CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | |
| CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | |
| run: | | |
| CREDENTIALS=$(echo -n "${CLEVER_TOKEN}:${CLEVER_SECRET}" | base64) | |
| git -c http.extraHeader="Authorization: Basic ${CREDENTIALS}" push https://push-n3-par-clevercloud-customers.services.clever-cloud.com/app_e18aa250-0ebc-4a2d-ba9f-1383450de63c.git main:master --force |