Skip to content

Publish @notesnook-importer/web #36

Publish @notesnook-importer/web

Publish @notesnook-importer/web #36

name: Publish @notesnook-importer/web
on: workflow_dispatch
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install packages
run: npm i
- name: Setup environment
run: |
echo "CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" >> $GITHUB_ENV
echo "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV
- name: Build importer
run: npm run build
- name: Publish on Cloudflare Pages
run: npx --yes wrangler pages publish --project-name=notesnook-importer ./apps/importer/build/