diff --git a/.github/workflows/deploy-on-prod.yml b/.github/workflows/deploy-on-prod.yml new file mode 100644 index 0000000..aefd828 --- /dev/null +++ b/.github/workflows/deploy-on-prod.yml @@ -0,0 +1,34 @@ +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@v3 + - uses: pnpm/action-setup@v2.2.4 + with: + version: 7 + run_install: false + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + 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.PROD_HOST}} + username: ${{secrets.SSH_USER_NAME}} + key: ${{secrets.SSH_KEY}} + source: "./dist/*" + target: "/var/www/html" + strip_components: 1 diff --git a/index.html b/index.html index 08e2c79..d935b81 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,27 @@ -
- -เหน่ยใจ
+ + +