From df92c8db9dde77811e01459bb19375f4f5534b80 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 22 Sep 2022 12:07:12 +0500 Subject: [PATCH] web: remove unused github workflows --- apps/web/.github/workflows/build.yml.disabled | 21 ----- apps/web/.github/workflows/deploy.yml | 47 ---------- apps/web/.github/workflows/eslint.yml | 33 ------- apps/web/.github/workflows/release.yml | 86 ------------------- 4 files changed, 187 deletions(-) delete mode 100644 apps/web/.github/workflows/build.yml.disabled delete mode 100644 apps/web/.github/workflows/deploy.yml delete mode 100644 apps/web/.github/workflows/eslint.yml delete mode 100644 apps/web/.github/workflows/release.yml diff --git a/apps/web/.github/workflows/build.yml.disabled b/apps/web/.github/workflows/build.yml.disabled deleted file mode 100644 index e0df6c102..000000000 --- a/apps/web/.github/workflows/build.yml.disabled +++ /dev/null @@ -1,21 +0,0 @@ -name: Build - -on: [pull_request, push] - -jobs: - build: - runs-on: ubuntu-latest - env: - GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }} - 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: Use Node.js 12.x - uses: actions/setup-node@v2.1.2 - with: - node-version: 12.x - - run: npm install - - run: npm build diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml deleted file mode 100644 index 1e040739c..000000000 --- a/apps/web/.github/workflows/deploy.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Beta Deployment - -permissions: - packages: read - contents: read - -# 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: - - name: Check out Git repository - 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: Setup npmrc - run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc - - - name: Use Node.js 16.x - uses: actions/setup-node@v2.1.5 - with: - node-version: 16.x - - run: npm ci - - run: npm run 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/eslint.yml b/apps/web/.github/workflows/eslint.yml deleted file mode 100644 index ed2aa2a2e..000000000 --- a/apps/web/.github/workflows/eslint.yml +++ /dev/null @@ -1,33 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: ESLint - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - pull_request: - 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" - lint: - # The type of runner that the job will run on - runs-on: ubuntu-latest - env: - GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }} - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # 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 - - run: npm ci - - name: ESLint Action - uses: reviewdog/action-eslint@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - reporter: github-pr-review - level: "warning" diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml deleted file mode 100644 index f47cc243c..000000000 --- a/apps/web/.github/workflows/release.yml +++ /dev/null @@ -1,86 +0,0 @@ -name: Build/release - -permissions: - packages: read - contents: read - -on: workflow_dispatch - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Check out Git repository - 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: Setup npmrc - run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc - - - name: Use Node.js 16.x - uses: actions/setup-node@v2.1.5 - with: - node-version: 16.x - - run: npm ci - - run: npm run build:desktop - - - name: Archive build artifact - uses: actions/upload-artifact@v2 - with: - name: build - path: build/**/* - - release: - needs: build - runs-on: ${{ matrix.os }} - - # Platforms to build on/for - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - - steps: - - name: Check out Git repository - 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: Use Node.js 15.x - uses: actions/setup-node@v2.1.5 - with: - node-version: 15.x - - - name: Download notesnook-web build - uses: actions/download-artifact@v2 - with: - name: build - path: ./desktop/build - - - name: Prepare for app notarization (macOS) - if: startsWith(matrix.os, 'macos') - # Import Apple API key for app notarization on macOS - run: | - mkdir -p ~/private_keys/ - echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8 - - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - package_root: ./desktop - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.PERSONAL_GH_TOKEN }} - build_script_name: "build" - # macOS code signing certificate - mac_certs: ${{ secrets.mac_certs }} - mac_certs_password: ${{ secrets.mac_certs_password }} - - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: true - env: - # macOS notarization API key - API_KEY_ID: ${{ secrets.api_key_id }} - API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}