DEV Community

Cover image for Creating vite vue ts template: Deploy to Github Pages with Github Actions
Sardorbek Imomaliev
Sardorbek Imomaliev

Posted on • Edited on

Creating vite vue ts template: Deploy to Github Pages with Github Actions

Configure github workflow to deploy to github pages

  1. Add deploy step for our build.yml

    +
    +      - name: Deploy
    +        # deploy only for version 16.x
    +        if: matrix.node-version == '16.x'
    +        uses: JamesIves/github-pages-deploy-action@4.1.4
    +        with:
    +          branch: gh-pages # The branch the action should deploy to.
    +          folder: dist # The folder the action should deploy.
    
  2. git add -u

  3. git commit -m 'Add deploy to github pages step for github workflow'

Links

Project

GitHub logo imomaliev / vue-ts

Vite + Vue + TypeScript template

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay