-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.2 KB
/
vuepress-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Vuepress Build and Deploy
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: vuepress-build-and-deploy
uses: jenkey2011/vuepress-deploy@master
env:
# The access token will eventually expire and need to be updated.
# When the token expires the following error will occur during deployment:
# remote: Invalid username or password.
# fatal: Authentication failed for '***github.com/Open-UAS/Open-UAS.github.io.git/'
#
# See the readme for jenkey2011/vuepress for instructions on how to create a new access token and add it to the Open-UAS/Open-UAS.github.io repo.
# https://github.com/jenkey2011/vuepress-deploy#create-a-personal-access-token
# NOTE: To add an access token you must be an Owner of the repo.
ACCESS_TOKEN: ${{ secrets.VARAD_ACCESS_TOKEN }}
TARGET_REPO: Open-UAS/Open-UAS.github.io
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm install && npm run build
BUILD_DIR: docs/.vuepress/dist
#CNAME: https://www.xxx.com