From 8fc3cc2f0e10750b98f016fc97944aba86b42c8d Mon Sep 17 00:00:00 2001 From: Isabel Fenton Date: Thu, 1 Aug 2024 16:05:20 +0100 Subject: [PATCH] Removing unnecessary github workflows (#700) --- .github/workflows/deploy-new-frontend.yml | 61 ------------------- .../workflows/remote-deploy-new-frontend.yml | 58 ------------------ .github/workflows/update-check_datasets.yml | 39 ------------ 3 files changed, 158 deletions(-) delete mode 100644 .github/workflows/deploy-new-frontend.yml delete mode 100644 .github/workflows/remote-deploy-new-frontend.yml delete mode 100644 .github/workflows/update-check_datasets.yml diff --git a/.github/workflows/deploy-new-frontend.yml b/.github/workflows/deploy-new-frontend.yml deleted file mode 100644 index 8d7c1e17..00000000 --- a/.github/workflows/deploy-new-frontend.yml +++ /dev/null @@ -1,61 +0,0 @@ -# # Simple workflow for deploying static content to GitHub Pages -# name: Deploy static content to Pages - -# on: -# # Runs on pushes targeting the default branch -# push: -# branches: ["main"] - -# # Allows you to run this workflow manually from the Actions tab -# workflow_dispatch: - -# # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages -# permissions: -# contents: read -# pages: write -# id-token: write - -# # Allow one concurrent deployment -# concurrency: -# group: "pages" -# cancel-in-progress: true - -# jobs: -# # Single deploy job since we're just deploying -# deploy: -# environment: -# name: github-pages -# url: ${{ steps.deployment.outputs.page_url }} -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Set up Node -# uses: actions/setup-node@v4 -# with: -# node-version: 20 -# cache: "npm" -# cache-dependency-path: "./frontend/package-lock.json" -# - name: Setup python -# uses: actions/setup-python@v4 -# with: -# python-version: 3.9 -# - name: Install Scivision.Py -# run: | -# pip install . -# - name: Install dependencies -# working-directory: frontend -# run: npm ci -# - name: Build -# working-directory: frontend -# run: npm run build && cp ./dist/index.html ./dist/404.html -# - name: Setup Pages -# uses: actions/configure-pages@v4 -# - name: Upload artifact -# uses: actions/upload-pages-artifact@v3 -# with: -# # Upload dist folder -# path: "./frontend/dist" -# - name: Deploy to GitHub Pages -# id: deployment -# uses: actions/deploy-pages@v4 diff --git a/.github/workflows/remote-deploy-new-frontend.yml b/.github/workflows/remote-deploy-new-frontend.yml deleted file mode 100644 index f3e39bc2..00000000 --- a/.github/workflows/remote-deploy-new-frontend.yml +++ /dev/null @@ -1,58 +0,0 @@ -# # Simple workflow for deploying static content to GitHub Pages -# name: Deploy static content to remote repo - -# on: -# # Runs on pushes targeting the default branch -# push: -# branches: ["main"] - -# # Allows you to run this workflow manually from the Actions tab -# workflow_dispatch: - -# # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages -# permissions: -# contents: read -# pages: write -# id-token: write - -# # Allow one concurrent deployment -# concurrency: -# group: "pages" -# cancel-in-progress: true - -# jobs: -# # Single deploy job since we're just deploying -# deploy: -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Set up Node -# uses: actions/setup-node@v4 -# with: -# node-version: 20 -# cache: "npm" -# cache-dependency-path: "./frontend/package-lock.json" -# - name: Setup python -# uses: actions/setup-python@v4 -# with: -# python-version: 3.9 -# - name: Install Scivision.Py -# run: | -# pip install . -# - name: Install dependencies -# working-directory: frontend -# run: npm ci -# - name: Build -# working-directory: frontend -# run: npm run build && cp ./dist/index.html ./dist/404.html && cp ./CNAME ./dist/CNAME -# - name: Pushes to another repository -# uses: cpina/github-action-push-to-another-repository@main -# env: -# SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} -# with: -# source-directory: "./frontend/dist" -# destination-github-username: "alan-turing-institute" -# destination-repository-name: "scivision-website-beta" -# user-email: ifenton@turing.ac.uk -# target-branch: main diff --git a/.github/workflows/update-check_datasets.yml b/.github/workflows/update-check_datasets.yml deleted file mode 100644 index a6de110e..00000000 --- a/.github/workflows/update-check_datasets.yml +++ /dev/null @@ -1,39 +0,0 @@ -# name: Auto-update check_datasets.js -# on: -# workflow_dispatch: -# schedule: -# - cron: '18 3 * * *' - -# jobs: -# check-catalogs: -# name: Check catalogs and create check_datasets.js file -# runs-on: ubuntu-latest -# permissions: -# contents: write -# steps: -# - uses: actions/checkout@v4 -# - uses: actions/setup-python@v4 -# with: -# python-version: '3.10' -# - name: Upgrade pip -# run: python -m pip install --upgrade pip -# - name: Install Scivision -# run: pip install -e . -# - name: Check data catalog -# run: scivision-check-datasets -# - name: Store artifact -# uses: actions/upload-artifact@v4 -# with: -# name: check-datasets-report -# path: check_datasets.js -# - name: Update check_datasets.js in frontend repository -# run: | -# mv -f check_datasets.js frontend/src/consts/check_datasets.js -# git config user.name "github-actions[bot]" -# git config user.email "41898282+github-actions[bot]@users.noreply.github.com" -# git pull -# git add . -# git commit -m "auto-update via GH Action" -# git push - -