Skip to content

Merge pull request #188 from Apillon/staging #196

Merge pull request #188 from Apillon/staging

Merge pull request #188 from Apillon/staging #196

Workflow file for this run

name: Deploy to GitHub pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate static vuepress files
uses: actions/setup-node@v3
with:
node-version: "16.x"
- run: npm i
- run: npm run build
- name: Init new repo in dist folder and commit generated files
run: |
cd .vuepress/dist
echo 'wiki.apillon.io' > CNAME
git init
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: .vuepress/dist