Skip to content

fix: wrong value on data export #202

fix: wrong value on data export

fix: wrong value on data export #202

on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: npm
- run: npm ci
- run: npm run test
- run: npm run build:masters
- run: npm run pages:build
env:
URL: ${{ vars.URL }}
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Deploy
uses: cloudflare/wrangler-action@3.0.0
if: github.repository == 'kohii/medi-xplorer'
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy .vercel/output/static --project-name medi-xplorer --branch "${{ steps.extract_branch.outputs.branch }}" --commit-hash ${{ github.sha }}