ci: update main.yml #11
This file contains hidden or 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
| name: Hostinger Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Vue 3 Application | |
| run: npm run build | |
| - name: Upload sources | |
| uses: SamKirkland/[email protected] | |
| with: | |
| server: ${{ secrets.HOSTINGER_HOST }} | |
| username: ${{ secrets.HOSTINGER_USERNAME }} | |
| password: ${{ secrets.HOSTINGER_PASSWORD }} | |
| local-dir: ./dist/ | |
| server-dir: /public_html/membership/ | |
| log-level: ${{ vars.HOSTINGER_LOG_LEVEL }} |