remove github workflow

This commit is contained in:
Mateusz Pstrucha committed 2023-12-16 00:33:43 +01:00
1 parent 0ef472cf3f
commit a0b9e7df47
1 file changed
-65
-65
View File
@@ -1,65 +0,0 @@
name: CI/CD
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: build
path: build/
deploy:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download artifacts
uses: actions/download-artifact@master
with:
name: build
path: www.mtps.pl/
- name: Copy via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
port: 2280
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
source: 'www.mtps.pl/'
target: '~/builds/'
- name: Run ansible
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
port: 2280
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
script: ~/play.sh publish-build -e DOMAIN=www.mtps.pl