Skip to content

Commit

Permalink
Rebasing commits
Browse files Browse the repository at this point in the history
  • Loading branch information
rotirk20 committed Aug 20, 2024
1 parent 55bfe6e commit bd92f53
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,35 @@ jobs:
run: npm install

- name: Run tests
run: npm test
run: npm test -- --watch=false --browsers=ChromeHeadless

- name: Build project
run: npm run build

- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: angular-build
path: "./dist/"

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: download artifact
uses: actions/download-artifact@v3
with:
name: angular-build
path: "./dist/"
- name: Deploy to cPanel hosting via FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./build
local-dir: ./dist/ # Adjust this to match your project name
server-dir: /public_html/ # Adjust this to your target directory on the server
port: ${{ secrets.FTP_PORT }} # Optional, default is 21
port: ${{ secrets.FTP_PORT }}
log-level: verbose

0 comments on commit bd92f53

Please sign in to comment.