Skip to content

Merge pull request #194 from dimitrov-d/main #201

Merge pull request #194 from dimitrov-d/main

Merge pull request #194 from dimitrov-d/main #201

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