From d7cd07f0f99419aa92b1867b63cde71ebe6ae640 Mon Sep 17 00:00:00 2001 From: Ajit Kumar Date: Mon, 13 Jan 2025 11:48:10 +0530 Subject: [PATCH] chore(update link name) --- .babelrc | 2 +- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ src/main.js | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.babelrc b/.babelrc index cd44b61..01d9f67 100644 --- a/.babelrc +++ b/.babelrc @@ -12,5 +12,5 @@ } ] ], - "compact": false + "compact": true } \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9905743 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Update Dev Server +run-name: acode.app/main - ${{ github.run_number }} +on: + push: + branches: + - main + +jobs: + Deploy: + runs-on: ubuntu-latest + + steps: + - name: Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_KEY }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} + script: | + export PATH="/home/${{ secrets.SSH_USER }}/.nvm/versions/node/v22.12.0/bin/:$PATH" + if ! command -v git &> /dev/null + then + sudo apt-get update + sudo apt-get install -y git + fi + cd ~/sites/acode.app + git pull + yarn install + yarn build-release + pm2 restart acode.app diff --git a/src/main.js b/src/main.js index 1051cc1..a1c541c 100644 --- a/src/main.js +++ b/src/main.js @@ -23,7 +23,7 @@ window.onload = async () => { { href: '/plugin-docs', text: 'Plugin Docs' }, { href: '/plugins', text: 'Plugins' }, { href: '/user', text: $loginText }, - { href: 'https://foxdebug.com', text: 'Foxdebug' }, + { href: 'https://foxbiz.io', text: 'Foxbiz' }, { href: '/policy', text: 'Privacy policy' }, { href: '/terms', text: 'Terms of service' }, ]} />;