delete github actions
This commit is contained in:
parent
5982e2654f
commit
231d6bf75d
23
.github/workflows/cd.yml
vendored
23
.github/workflows/cd.yml
vendored
@ -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
|
|
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user