-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove deployment step from the CI
- Loading branch information
1 parent
408d78a
commit bbe51e7
Showing
1 changed file
with
19 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |