From 7bae2db194e57bda7d93d1d1371ecbc7a4b622b7 Mon Sep 17 00:00:00 2001 From: Andrew Wei Date: Sun, 3 Sep 2023 11:18:02 -0700 Subject: [PATCH] Remove unused CI/CD scripts --- .github/workflows/deploy_to_gh_pages.sh | 29 ------------------------- .github/workflows/deploy_to_npm.sh | 13 ----------- 2 files changed, 42 deletions(-) delete mode 100755 .github/workflows/deploy_to_gh_pages.sh delete mode 100755 .github/workflows/deploy_to_npm.sh diff --git a/.github/workflows/deploy_to_gh_pages.sh b/.github/workflows/deploy_to_gh_pages.sh deleted file mode 100755 index f64662e..0000000 --- a/.github/workflows/deploy_to_gh_pages.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Required environment variables: -# - GH_USER: Name of GitHub user to use for the commit -# - GH_PAGES_DIR: Directory (relative to project root) to deploy to GitHub Pages -# - GH_TOKEN: GitHub auth token for write permissions - -GH_PAGES_DIR=${GH_PAGES_DIR:-.gh-pages} -GH_USER=${GH_USER:-$GITHUB_ACTOR} -ORIGIN_URL="https://$GH_USER:$GH_TOKEN@github.com/$GITHUB_REPOSITORY.git" - -# Checkout new branch. -if [ `git branch | grep gh-pages` ]; then git branch -D gh-pages; fi -git checkout -b gh-pages - -# Build and move generated files to root, then delete everything else. -npm run pages -find . -maxdepth 1 ! -name '.' ! -name '..' ! -name ${GH_PAGES_DIR} ! -name '.git' ! -name '.gitignore' -exec rm -rf {} \; -mv ${GH_PAGES_DIR}/* . -rm -R ${GH_PAGES_DIR}/ - -# Push to gh-pages. -git config user.name "$GH_USER" -git config user.email "$GH_USER@users.noreply.github.com" -git add -fA -git commit --allow-empty -m "[SKIP CI] $(git log -1 --pretty=%B)" -git push -f $ORIGIN_URL gh-pages - -echo "Successfully published docs to GitHub Pages" diff --git a/.github/workflows/deploy_to_npm.sh b/.github/workflows/deploy_to_npm.sh deleted file mode 100755 index f5db609..0000000 --- a/.github/workflows/deploy_to_npm.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Required environment variables: -# - NPM_AUTH: NPM auth token - -echo "//registry.npmjs.org/:_authToken=$NPM_AUTH" >> ~/.npmrc - -if npm publish; then - echo "Successfully published to NPM" -else - echo "Failed to publish to NPM" - exit 1 -fi