DEV Community

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

Posted on • Updated 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

Template vite vue typescript

Discussion (0)