Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: add beta deployment target

thecodrrb98868602ac1
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
new file mode 100644
index 000000000..4739cba81
--- /dev/null
+++ b/apps/web/.github/workflows/deploy.yml
@@ -0,0 +1,41 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the main branch
+ push:
+ branches: [master]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: 5.0.x
+
+ - name: Use Node.js 15.x
+ uses: actions/[email protected]
+ with:
+ node-version: 15.x
+ - run: yarn install
+ - run: yarn build
+
+ - uses: easingthemes/ssh-deploy@main
+ env:
+ SSH_PRIVATE_KEY: ${{ secrets.REMOTE_KEY }}
+ ARGS: "-aPzz"
+ SOURCE: "./build/*"
+ REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
+ REMOTE_USER: ${{ secrets.REMOTE_USER }}
+ TARGET: ${{ secrets.REMOTE_PATH }}
+ EXCLUDE: "*.map, *.txt"
diff --git a/apps/web/.github/workflows/deploy.yml.disabled b/apps/web/.github/workflows/deploy.yml.disabled
deleted file mode 100644
index a5b9eeba3..000000000
--- a/apps/web/.github/workflows/deploy.yml.disabled
+++ /dev/null
@@ -1,25 +0,0 @@
-name: Build and Deploy
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-jobs:
- build-and-deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout πŸ›ŽοΈ
- uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
- with:
- persist-credentials: false
-
- - name: Deploy πŸš€
- uses: amondnet/[email protected]
- with:
- vercel-token: ${{ secrets.ZEIT_TOKEN }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- vercel-args: "--prod"
- vercel-org-id: "Wst8mhjfr4LzbjOe956M2Z4t"
- vercel-project-id: "QmStgLZ26V8aowiAAdyYaFVjRDWP9T8GEUoR9iJFSSnpWJ"
diff --git a/apps/web/playwright.config.js b/apps/web/playwright.config.js
index 5f9a3394d..6af8b2fd9 100644
--- a/apps/web/playwright.config.js
+++ b/apps/web/playwright.config.js
@@ -17,6 +17,15 @@ module.exports = {
trace: IS_CI ? "off" : "retain-on-failure",
screenshot: IS_CI ? "off" : "only-on-failure",
video: IS_CI ? "off" : "retry-with-video",
+
+ viewport: {
+ width: 1280,
+ height: 720,
+ },
+ screen: {
+ width: 1280,
+ height: 720,
+ },
},
projects: [
{
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 3e503abc7..965fd2285 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -8610,7 +8610,7 @@ normalize-url@^3.0.0:
"notes-core@git+https://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:[email protected]/streetwriters/notesnook-core.git":
version "6.8.0"
- resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#928ed8ca7c770ec15fbf3bc7f2f398d14620ae65"
+ resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#e761e03dd9303b7d6e45d05fd434ad4c0d3bb508"
dependencies:
"@stablelib/blake2s" "^1.0.1"
dayjs "^1.10.6"