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

imomaliev

Sardorbek Imomaliev

Posted on July 30, 2021

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

💖 💪 🙅 🚩
imomaliev
Sardorbek Imomaliev

Posted on July 30, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related