From 8b69f65a49986735f2c1717aa467092984bb2740 Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Wed, 1 May 2024 16:20:30 -0400 Subject: [PATCH] turn of github action --- .github/workflows/build-web.yml | 94 ++++++++++++++------------------- 1 file changed, 39 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index 248d118..b733d36 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -1,56 +1,40 @@ -name: Build Web Client - -on: - push: - branches: - - main - paths: - - 'web/**' - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v1 - with: - node-version: '18' - - - name: Install Dependencies - run: npm install - working-directory: ./web - - - name: Build - # run: npm run production - run: npm run read_only - working-directory: ./web +# name: Build Web Client + +# on: +# push: +# branches: +# - main +# paths: +# - 'web/**' + +# jobs: +# build-and-deploy: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Repository +# uses: actions/checkout@v2 + +# - name: Set up Node.js +# uses: actions/setup-node@v1 +# with: +# node-version: '18' + +# - name: Install Dependencies +# run: npm install +# working-directory: ./web + +# - name: Build +# run: npm run read_only +# working-directory: ./web - - name: List build directory contents - run: ls -lah dist/read_only - working-directory: ./web - - # - name: Remove dist from .gitignore - # run: sed -i '/dist/d' ./web/.gitignore - - - name: Deploy to Dist Branch - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.BUILD_TOKEN }} - # publish_dir: . - publish_dir: web/dist/read_only # puts the index.html and assets in root of repo - # publish_branch: built - publish_branch: gh-pages - keep_files: false - # - name: Deploy to Built Branch - # run: | - # pwd - # git config --global user.name 'Ian Johnson' - # git config --global user.email 'enjalot@gmail.com' - # git checkout -b built - # git add -f web/dist/production - # git commit -m "Deploying build" - # git push --force https://${{ secrets.MY_PERSONAL_TOKEN }}:x-oauth-basic@github.com/enjalot/latent-scope.git built - +# - name: List build directory contents +# run: ls -lah dist/read_only +# working-directory: ./web + +# - name: Deploy to Dist Branch +# uses: peaceiris/actions-gh-pages@v3 +# with: +# github_token: ${{ secrets.BUILD_TOKEN }} +# publish_dir: web/dist/read_only # puts the index.html and assets in root of repo +# publish_branch: gh-pages +# keep_files: false \ No newline at end of file