Skip to content

move to plugin

move to plugin #11

Workflow file for this run

on:
push:
paths:
- "web/**"
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy web to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build Cache
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/web/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Build
env:
NEXT_TELEMETRY_DISABLED: 1
run: cd web && yarn install && yarn build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: invenhost-web
directory: web/out
gitHubToken: ${{ secrets.GITHUB_TOKEN }}