Tighten security #741
Workflow file for this run
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: Cloudflare deployment gp-ui | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./ | |
| permissions: | |
| contents: read | |
| deployments: write | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.33.0 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| env: | |
| VITE_PSE_RELAY_SERVER_URL: 'https://pse-backend.v2.gnosispay.com/token' | |
| VITE_PSE_APP_ID: 'gp_a1b2c3d4e5f678901234567890123456' | |
| VITE_GNOSIS_PAY_API_BASE_URL: 'https://api.gnosispay.com/' | |
| VITE_IFRAME_HOST: 'https://api-pse-public.gnosispay.com' | |
| VITE_ZENDESK_KEY: '${{ secrets.VITE_ZENDESK_KEY }}' | |
| run: pnpm build | |
| - name: Publish to Cloudflare Pages | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_GP_UI }} | |
| accountId: 8c558f9b31e53240659ee45069b7ec2b | |
| projectName: gp-ui | |
| directory: ./dist | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |