diff --git a/.github/workflows/deploy-vue-prod.yml b/.github/workflows/deploy-vue-prod.yml new file mode 100644 index 00000000..c87c6669 --- /dev/null +++ b/.github/workflows/deploy-vue-prod.yml @@ -0,0 +1,39 @@ +name: deploy vue + +on: + push: + branches: + - prod + +jobs: + deploy-app: + runs-on: ubuntu-latest + steps: + - name: check out the code to build server + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10 + run_install: false + + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: build the code + run: | + pnpm install --no-frozen-lockfile + pnpm build + + - name: copy file to server + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.SSH_USER_NAME }} + key: ${{ secrets.SSH_KEY }} + source: "./dist/**" + target: "/var/www/html" + strip_components: 1 \ No newline at end of file diff --git a/.github/workflows/deploy-vue.yml b/.github/workflows/deploy-vue.yml new file mode 100644 index 00000000..1e2d9ddc --- /dev/null +++ b/.github/workflows/deploy-vue.yml @@ -0,0 +1,39 @@ +name: deploy vue + +on: + push: + branches: + - master + +jobs: + deploy-app: + runs-on: ubuntu-latest + steps: + - name: check out the code to build server + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 10 + run_install: false + + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: build the code + run: | + pnpm install --no-frozen-lockfile + pnpm build + + - name: copy file to server + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.SSH_USER_NAME }} + key: ${{ secrets.SSH_KEY }} + source: "./dist/**" + target: "/var/www/html" + strip_components: 1 \ No newline at end of file diff --git a/cypress/e2e/home.cy.ts b/cypress/e2e/home.cy.ts index 0c50ef09..6cafca9c 100644 --- a/cypress/e2e/home.cy.ts +++ b/cypress/e2e/home.cy.ts @@ -12,7 +12,7 @@ describe('homepage', () => { cy.visit(ROUTES.HOME) cy.get('h1.logo-font') - .should('contain.text', 'conduit') + .should('contain.text', 'Chindanai Jaiman') }) it('should highlight Global Feed when home page loaded', () => { diff --git a/index.html b/index.html index 08e2c793..98431bf3 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@
-