add vuepress deployment workflow

This commit is contained in:
mahula 2023-11-27 17:31:19 +01:00
parent 68da8d0268
commit f668af7457

28
.github/workflows/vuepress-deploy.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: Ocelot-Social-Community/ocelot.social
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm install && npm run build-legacy
BUILD_DIR: docs/.vuepress/dist
CNAME: https://www.ocelot.social