Skip to content

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

ci: use action env

thecodrrcbe9fcc40a3a
diff --git a/apps/web/.github/workflows/build.yml b/apps/web/.github/workflows/build.yml
index add7cb611..5521c1cfd 100644
--- a/apps/web/.github/workflows/build.yml
+++ b/apps/web/.github/workflows/build.yml
@@ -6,7 +6,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
- 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:
@@ -16,5 +15,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- run: npm build
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
index 3a925dff0..16e28e176 100644
--- a/apps/web/.github/workflows/deploy.yml
+++ b/apps/web/.github/workflows/deploy.yml
@@ -10,7 +10,6 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- - run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
- 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:
@@ -20,6 +19,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- name: Build and Deploy πŸš€
diff --git a/apps/web/.github/workflows/e2e.yml b/apps/web/.github/workflows/e2e.yml
index edb36d8c8..e36066276 100644
--- a/apps/web/.github/workflows/e2e.yml
+++ b/apps/web/.github/workflows/e2e.yml
@@ -6,7 +6,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
- run: echo "CI=true" >> $GITHUB_ENV
- 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.
@@ -17,6 +16,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- uses: microsoft/playwright-github-action@v1
- name: Running tests
diff --git a/apps/web/.github/workflows/eslint.yml b/apps/web/.github/workflows/eslint.yml
index 1d065cb86..01279d6ee 100644
--- a/apps/web/.github/workflows/eslint.yml
+++ b/apps/web/.github/workflows/eslint.yml
@@ -16,13 +16,14 @@ jobs:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- - run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
- run: npm install
- name: ESLint Action
uses: reviewdog/action-eslint@v1