This Action will Build a site based on your repository and deploy it on Github Pages.
- Create a Github Actions Workflow file and add this to it
name: Build Github Pages
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Build-Vue
uses: lentryd/VDocs@1.0.0
with:
username: ${{ github.repository_owner }}
reponame: ${{ github.event.repository.name }}
branch: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
- Go to Settings -> Scroll down to GitHub Pages -> Select
gh-pages
as branch and/
as directory
Name | Description | Default | Required |
---|---|---|---|
username | Your username | - | ✅ |
reponame | Your repository name | - | ✅ |
branch | Your repository branch | - | ✅ |
gtag | Your google analytic tag | - | ❎ |
token | Please leave this line unchanged | - | ✅ |