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: deploy master branch to cloudflare as beta
Abdullah Attaa9f36076b35d
diff --git a/.github/workflows/vericrypt.publish.yml b/.github/workflows/vericrypt.publish.ymlindex 46ae39285..abfaaec26 100644--- a/.github/workflows/vericrypt.publish.yml+++ b/.github/workflows/vericrypt.publish.yml@@ -24,8 +24,8 @@ jobs:echo "CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" >> $GITHUB_ENVecho "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV- - name: Generate desktop build+ - name: Generate buildrun: npm run build:vericrypt- name: Publish on Cloudflare Pages- run: npx --yes wrangler pages publish --project-name=vericrypt ./apps/vericrypt/build/+ run: npx --yes wrangler pages deploy --project-name=vericrypt ./apps/vericrypt/build/diff --git a/.github/workflows/web.beta.publish.yml b/.github/workflows/web.beta.publish.ymlnew file mode 100644index 000000000..dedec51be--- /dev/null+++ b/.github/workflows/web.beta.publish.yml@@ -0,0 +1,35 @@+name: Publish @notesnook/web Beta++on:+ workflow_dispatch:+ push:+ branches:+ - "master"++jobs:+ build:+ name: Build+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v3++ - name: Setup Node+ uses: ./.github/actions/setup-node-with-cache++ - name: Install packages+ run: |+ npm ci --ignore-scripts --prefer-offline --no-audit+ npm run bootstrap -- --scope=web++ - name: Setup environment+ run: |+ echo "NX_CLOUD_ACCESS_TOKEN=${{ secrets.NX_CLOUD_ACCESS_TOKEN }}" >> $GITHUB_ENV+ echo "CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" >> $GITHUB_ENV+ echo "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV++ - name: Generate beta build+ run: 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/diff --git a/.github/workflows/web.publish.yml b/.github/workflows/web.publish.ymlindex 3f75ea7fd..28bb7e464 100644--- a/.github/workflows/web.publish.yml+++ b/.github/workflows/web.publish.yml@@ -24,8 +24,8 @@ jobs:echo "CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}" >> $GITHUB_ENVecho "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV- - name: Generate desktop build+ - name: Generate buildrun: npm run build:web- name: Publish on Cloudflare Pages- run: npx --yes wrangler pages publish --project-name=notesnook-app ./apps/web/build/+ run: npx --yes wrangler pages deploy --project-name=notesnook-app ./apps/web/build/diff --git a/nx.json b/nx.jsonindex c27f531ce..236246414 100644--- a/nx.json+++ b/nx.json@@ -25,6 +25,10 @@"dependsOn": ["^build"],"outputs": ["{projectRoot}/build"]},+ "build:beta": {+ "dependsOn": ["^build"],+ "outputs": ["{projectRoot}/build"]+ },"build:desktop": {"dependsOn": ["^build"],"outputs": ["{projectRoot}/build"]diff --git a/package.json b/package.jsonindex 2b152d5dc..011cc36c8 100644--- a/package.json+++ b/package.json@@ -9,6 +9,7 @@"build:web": "nx build @notesnook/web","build:vericrypt": "nx build @notesnook/vericrypt","build:test:web": "nx build:test @notesnook/web",+ "build:beta:web": "nx build:beta @notesnook/web","start:web": "nx start @notesnook/web","start:vericrypt": "nx start @notesnook/vericrypt","start:desktop": "nx start @notesnook/desktop",