feat: new point query (#325) #811
This file contains 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 Pages Deploy | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
environment: | |
name: | |
${{ (github.ref == 'refs/heads/main' && 'production') || (github.ref == 'refs/heads/develop' && 'dev') || | |
'preview' }} | |
permissions: | |
actions: read # Only required for private GitHub Repo | |
contents: read | |
deployments: write | |
pull-requests: write | |
packages: read | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
steps: | |
- name: "Checkout Github Action" | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.14.0" | |
- name: create env file | |
run: | | |
touch .env | |
echo VITE_FEATURE_TOGGLE_CLIENT_KEY=${{ vars.VITE_FEATURE_TOGGLE_CLIENT_KEY }} >> .env | |
- name: Configure npm authentication for GitHub Registry | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
run: | | |
echo "@compolabs:registry=https://npm.pkg.github.com/" > .npmrc | |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc | |
- name: Install Dependencies | |
run: | | |
pnpm install | |
- name: Build Project | |
run: | | |
npm run build | |
- name: "Deploy to Cloudflare Pages" | |
uses: andykenward/github-actions-cloudflare-pages@v2.3.1 | |
with: | |
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
cloudflare-project-name: ${{ github.event.repository.name }} | |
directory: build | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
github-environment: ${{ (github.ref == 'refs/heads/main' && 'production') || 'preview' }} |