Skip to content

Commit

Permalink
chore: Remove deployment step from the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszputek committed Oct 22, 2024
1 parent 408d78a commit bbe51e7
Showing 1 changed file with 19 additions and 36 deletions.
55 changes: 19 additions & 36 deletions .github/workflows/push-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,27 @@
name: Push workflow
on:
push:
branches: [ main ]
branches: [main]
jobs:
build:
name: Build and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate table for addon
run: npm run addon:generate-table
- name: Configure addon
run: npm run addon:configure
- name: Build addon
run: npm run addon:build
- name: Build application
run: npm run build
- name: Run tests
run: npm test
deploy:
name: Deploy application
runs-on: ubuntu-latest
needs: build
steps:
- name: Connect via SSH and deploy app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ${{ secrets.SSH_BUILD_PATH }}
git fetch
git reset --hard origin/main
cd ../..
docker-compose up -d --build poker-master-tool
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Generate table for addon
run: npm run addon:generate-table
- name: Configure addon
run: npm run addon:configure
- name: Build addon
run: npm run addon:build
- name: Build application
run: npm run build
- name: Run tests
run: npm test

0 comments on commit bbe51e7

Please sign in to comment.