Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions .github/workflows/vuepress-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
name: Build and Deploy

# Builds the site on every pull request and push to main.
# Only a push to main deploys it to the gh-pages branch, which GitHub Pages serves.
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: libfintx/libfintx.github.io
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: yarn && yarn build
BUILD_DIR: docs/.vuepress/dist
#CNAME: https://www.xxx.com
# VuePress 1 uses webpack 4, which needs the legacy OpenSSL provider on Node 17 and later
NODE_OPTIONS: --openssl-legacy-provider

- name: Deploy to gh-pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/.vuepress/dist
286 changes: 286 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading