A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
ci: use unlike-ltd/github-actions-cloudflare-pages for deployment
Abdullah Atta2d90caafc6f4
diff --git a/.github/workflows/web.beta.publish.yml b/.github/workflows/web.beta.publish.ymlindex dedec51be..046759b82 100644--- a/.github/workflows/web.beta.publish.yml+++ b/.github/workflows/web.beta.publish.yml@@ -4,8 +4,14 @@ on:workflow_dispatch:push:branches:- - "master"-+ - master+ pull_request:+ types:+ - closed+ - ready_for_review+ - reopened+ branches:+ - masterjobs:build:name: Build@@ -31,5 +37,13 @@ jobs:- name: Generate beta buildrun: npm run build:beta:web- - name: Publish on Cloudflare Pages- run: npx --yes wrangler pages deploy --branch master --project-name=notesnook-beta-app ./apps/web/build/+ - name: Publish to Cloudflare Pages+ uses: unlike-ltd/[email protected]+ id: pages+ with:+ cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ cloudflare-project-name: notesnook-beta-app+ directory: ./apps/web/build+ github-token: ${{ secrets.GITHUB_TOKEN }}+ github-environment: ${{ (github.ref == 'refs/heads/master' && 'beta') || 'preview' }}diff --git a/.github/workflows/web.publish.yml b/.github/workflows/web.publish.ymlindex 28bb7e464..568ed10c1 100644--- a/.github/workflows/web.publish.yml+++ b/.github/workflows/web.publish.yml@@ -27,5 +27,13 @@ jobs:- name: Generate buildrun: npm run build:web- - name: Publish on Cloudflare Pages- run: npx --yes wrangler pages deploy --project-name=notesnook-app ./apps/web/build/+ - name: Publish to Cloudflare Pages+ uses: unlike-ltd/[email protected]+ id: pages+ with:+ cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}+ cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ cloudflare-project-name: notesnook-app+ directory: ./apps/web/build+ github-token: ${{ secrets.GITHUB_TOKEN }}+ github-environment: production