Skip to content

Commit

Permalink
Deploy osmgo.com & fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DoFabien committed Jul 8, 2024
1 parent b6a651a commit de6c648
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/deployOsmGo.com.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deployment to dev.osmgo.com

on:
push:
branches:
- master

jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test:ci

- name: Create build
run: npm run build

- name: rsync deployments
if: success()
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: www/
remote_path: ${{ secrets.PROD_OSMGO_DEPLOY_PATH }}
remote_host: osmgo.com
remote_port: 22
remote_user: ${{ secrets.OSMGO_SRV_USER }}
remote_key: ${{ secrets.OSMGO_SRV_KEY }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"config": "ts-node --project ./scripts/tsconfig.json ./src/environments/set-env.ts",
"start": "npm run config PWA && ng serve --host 0.0.0.0",
"build": "npm run config PWA && ng build --configuration production",
"buildAndroid": "node ./incrementVersion.js && npm run config Android && ionic build --prod --release && npx cap sync && npx cap open android",
"buildAndroid": "npm run config Android && node ./incrementVersion.js && ionic build --prod --release && npx cap sync && npx cap open android",
"buildAndroidDebug": "npm run config Android && ng build --configuration development && npx cap sync",
"test": "npm run config && ng test --ts-config src/tsconfig.spec.json --browsers Chrome",
"test:coverage": "npm run config && npm run test -- --code-coverage",
Expand Down

0 comments on commit de6c648

Please sign in to comment.