From c23e4eafbca69756b96362f571d0190ecfe3302e Mon Sep 17 00:00:00 2001 From: Bhaskar Metiya Date: Fri, 26 Apr 2024 22:48:32 +0530 Subject: [PATCH] manual deploy(33) --- .github/workflows/copyDeploy.yaml | 26 -------------------------- index.html | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 .github/workflows/copyDeploy.yaml diff --git a/.github/workflows/copyDeploy.yaml b/.github/workflows/copyDeploy.yaml deleted file mode 100644 index 86cc1ca..0000000 --- a/.github/workflows/copyDeploy.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: copy_dist_to_deploy - -on: [push] - -jobs: - copy: - name: Copy my folder - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: copy - env: - SRC_FOLDER_PATH: 'dist' - TARGET_BRANCH: 'deploy' - PAT_TOKEN: ${{ secrets.PAT_TOKEN }} - run: | - files=$(ls $SRC_FOLDER_PATH) # get the file list - git config --global user.name 'GitHub Action' - git config --global user.email 'action@github.com' - git fetch # fetch branches - git checkout $TARGET_BRANCH # checkout to your branch - rm -rf * - git checkout ${GITHUB_REF##*/} -- $files # copy files from the source branch - git add -A - git diff-index --quiet HEAD || git commit -am "deploy files" # commit to the repository (ignore if no modification) - git push origin $TARGET_BRANCH # push to remote branch diff --git a/index.html b/index.html index 6f6f238..bf29d18 100644 --- a/index.html +++ b/index.html @@ -105,7 +105,7 @@