diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index e52f1c4..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: CD - -on: - push: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Deploy using ssh - uses: appleboy/ssh-action@master - with: - script: | - mkdir -p ~/.ssh - echo "${{ secrets.PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} - cd ~/apps/website - git pull origin main - pnpm run install - pnpm run build - cp -r ./dist/* /var/www/website diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index ef6abe9..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: CI - -on: - pull_request: - branches: - - main - -env: - SECRET_POCKETBASE_API_URL: ${{ vars.SECRET_POCKETBASE_API_URL }} - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: git-checkout - uses: actions/checkout@v3 - - - name: Setup pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 - - - name: Build project - uses: pnpm/action-setup@v3 - with: - version: 9 - - run: pnpm install - - run: pnpm run build