DEV Community

loading...
Cover image for Creating vite vue ts template: Deploy to Github Pages with Github Actions

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

Sardorbek Imomaliev
Co-Founder at tagteam.dev, python developer who lives in terminal and likes to play volleyball
Updated on ・1 min read

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)